|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// network_observability/observing-network-traffic.adoc |
| 4 | + |
| 5 | +:_content-type: PROCEDURE |
| 6 | +[id="network-observability-dns-tracking_{context}"] |
| 7 | += Working with DNS tracking |
| 8 | +Using DNS tracking, you can monitor your network, conduct security analysis, and troubleshoot DNS issues. You can track DNS by editing the `FlowCollector` to the specifications in the following YAML example. |
| 9 | ++ |
| 10 | +[IMPORTANT] |
| 11 | +==== |
| 12 | +CPU and memory usage increases are observed in the eBPF agent when this feature is enabled. |
| 13 | +==== |
| 14 | +.Procedure |
| 15 | +. In the web console, navigate to *Operators* -> *Installed Operators*. |
| 16 | +. Under the *Provided APIs* heading for the *NetObserv Operator*, select *Flow Collector*. |
| 17 | +. Select *cluster* then select the *YAML* tab. |
| 18 | +. Configure the `FlowCollector` custom resource. A sample configuration is as follows: |
| 19 | ++ |
| 20 | +[id="network-observability-flowcollector-configuring-dns_{context}"] |
| 21 | +.Configure `FlowCollector` for DNS tracking |
| 22 | +[source, yaml] |
| 23 | +---- |
| 24 | +apiVersion: flows.netobserv.io/v1alpha1 |
| 25 | +kind: FlowCollector |
| 26 | +metadata: |
| 27 | + name: cluster |
| 28 | +namespace: netobserv |
| 29 | + deploymentModel: DIRECT |
| 30 | + agent: |
| 31 | + type: EBPF |
| 32 | + ebpf: |
| 33 | + features: |
| 34 | + - DNSTracking <1> |
| 35 | + privileged: true <2> |
| 36 | +---- |
| 37 | +<1> You can set the `spec.agent.ebpf.features` parameter list to enable DNS tracking of each network flow in the web console. |
| 38 | +<2> Note that the `spec.agent.ebpf.privileged` specification value must be `true` for packet drop tracking to be enabled. |
| 39 | + |
| 40 | +. When you refresh the *Network Traffic* page, there are new DNS representations you can choose to view in the *Overview* and *Traffic Flow* views and new filters you can apply. |
| 41 | +.. Select new DNS choices in *Manage panels* to display graphical visualizations and DNS metrics in the *Overview*. |
| 42 | +.. Select new choices in *Manage columns* to add DNS columns to the *Traffic Flows* view. |
| 43 | +.. Filter on specific DNS metrics, such as *DNS Id*, *DNS Latency* and *DNS Response Code*, and see more information from the side panel. |
0 commit comments