I am sending all DNS traffic to logstash. Is it possible to add vlan data (especially the vlan.id) to this output?
This is my packetbeat.yml:
# =============================== Network device ===============================
packetbeat.interfaces.device: any
packetbeat.interfaces.type: af_packet
packetbeat.interfaces.internal_networks:
- private
# =========================== Transaction protocols ============================
packetbeat.protocols:
- type: dns
ports: [53]
# ================================== General ===================================
name: <servername>
tags: [forwarded]
# ================================== Outputs ===================================
# ------------------------------ Logstash Output -------------------------------
output.logstash:
# The Logstash hosts
hosts: ["<dip>:<dport>"]
# ================================= Processors =================================
processors:
- # Add forwarded to tags when processing data from a network tap or mirror.
if.contains.tags: forwarded
then:
- drop_fields:
fields: [host]
else:
- add_host_metadata: ~
- add_cloud_metadata: ~
- add_docker_metadata: ~
- detect_mime_type:
field: http.request.body.content
target: http.request.mime_type
- detect_mime_type:
field: http.response.body.content
target: http.response.mime_type
btw, is it possible to define more than one device on which packetbeat listens to (without using 'any')?