Then when i try running it, it shows no error but there are no indices in my Opensearch Dashboard. Im considering using multiple pipelines right now.
Can anyone explain to me why i see no index although there are no errors when trying to run that pipelines.yml? And can you show me how to config Logstash to use multiple pipelines?
You can add console output to your logstash config to debug, like this:
output { stdout { codec => rubydebug } }
, after tried that, I found in logstash 8.7.0, the beat field you used doesn’t exist, but the field agent can be used to get the beat type, and another metadata field %{[@metadata][beat]} can also be used to get the beat type, you can have a try, here is my config:
I understood what u meant, and try to correct the pipelines as you said:
I tried both [agent][type] and [agent.type] and [@metadata][beat] but i doesnt seem to change, the logs show no errors but there are no indices pushed to Opensearch Dashboard. I tried to push Auditbeat and Filebeat seperately and it works fine, and the field agent.type is there in both indices:
The only difference between auditbeat and filebeat in the output is the index name, right? If so how about trying this and remove the if condition: index => "%{[@metadata][beat]}-%{YYYY.MM.dd}"