HEX
Server: Apache
System: Linux dilmahquizNew 5.14.0-162.12.1.el9_1.0.2.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 30 22:14:42 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/share/filebeat/module/zeek/tunnel/config/tunnel.yml
type: log
paths:
{{ range $i, $path := .paths }}
 - {{$path}}
{{ end }}
exclude_files: [".gz$"]
tags: {{.tags | tojson}}
publisher_pipeline.disable_host: {{ inList .tags "forwarded" }}

json.keys_under_root: false

fields_under_root: true

processors:
  - rename:
      fields:
        - from: "json"
          to: "zeek.tunnel"

        - from: "zeek.tunnel.id.orig_h"
          to: "source.address"

        - from: "zeek.tunnel.id.orig_p"
          to: "source.port"

        - from: "zeek.tunnel.id.resp_h"
          to: "destination.address"

        - from: "zeek.tunnel.id.resp_p"
          to: "destination.port"

        - from: "zeek.tunnel.uid"
          to: "zeek.session_id"

        - from: "zeek.tunnel.tunnel_type"
          to: "zeek.tunnel.type"

      ignore_missing: true
      fail_on_error: false
  - convert:
      fields:
        - {from: "zeek.session_id", to: "event.id"}
        - {from: "source.address", to: "source.ip", type: "ip"}
        - {from: "destination.address", to: "destination.ip", type: "ip"}
        - {from: "zeek.tunnel.action", to: "event.action"}
      ignore_missing: true
      fail_on_error: false
{{ if .internal_networks }}
  - add_network_direction:
      source: source.ip
      destination: destination.ip
      target: network.direction
      internal_networks: {{ .internal_networks | tojson }}
{{ end }}
  - add_fields:
      target: event
      fields:
        kind: event
        category:
          - network
        type:
          - connection
  - add_fields:
      target: ''
      fields:
        ecs.version: 1.12.0