I am trying to ingest logs from our Juniper switshes and I'm trying to configure a syslog input. Manyally editing the Logstash input config I got this to work.
Puppet would be fine with that but Logstash does not find the pattern JUNIPER_INPUT. If it was a grok filter I could set patterns_dir but that does not seem to be possible to do on the syslog input.
Any suggestions on how to get around this? I guess I could move everything to the filter section but I was very happy to see that it was possible to do some grok stuff already on the input...
I am still very interested in hearing suggestions and ideas on this. I did manage to find a working solution for now by looking through and choosing patterns already known to Logstash
With regard to the extra patterns - you have to set patterns_dir inside the "filter" section and create a grok pattern there.
You can make the filter conditional by using if [type] == "juniper"
Here you are trying to filter inside the syslog input...
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.