Hello,
I'm trying to add an IF statement in my winlogbeat configuration, but I can't figure out how. Basically I have a field named token that I need to changed based on the agent_name. What am I missing?
###################### Winlogbeat Configuration ##########################
winlogbeat.event_logs:
- name: Application
ignore_older: 720h
- name: Security
ignore_older: 720h
- name: System
ignore_older: 720h
fields:
logzio_codec: json
token: AAAAAAAAAAAAAAAAAAAAAAA
type: wineventlog
fields_under_root: true
# processors:
# - if:
# winlogbeat.agent:
# name: "HOSTNAME"
# then:
# - replace:
# fields:
# token : BBBBBBBBBBBBBBBBB
#
#----------------------------- Logstash output -----------------------------
output.logstash:
hosts: [ host:port ]
ssl:
certificate_authorities: [path]
Thank you,
Mathieu