Hi,
We have a requirement to send our security logs to a different LogStash endpoint - I've tried various configs in the WinLogBeat.yml file - but Im not sure if its possible.
I know on LogStash this is fairly easy to send to different ES endpoints/indices, but the same format doesnt seem to work in the WinLogBeat.yml - basically we want our inputs to be all logs, but to send the security logs specifically to a different LogStash endpoint.
Its fine if it duplicates and sends security logs to both - the only way I can currently see of achieving this is with 2 WinLogBeat instances, but was hoping to do it with just one.
Any help appreciated.
My best attempt was something like:
input {
winlogbeat.event_logs:
- name: Application
fields: {log_type: Application} - name: Security
fields: {log_type: Security} - name: System
fields: {log_type: System}
}
filter {
if [fields][log_type] == "Security" {
output.logstash:
hosts:
-
ssl:
- enabled: true
index: winsec
}
}
But of course this format is more for LogStash and not for yml and hence fails so didnt continue.