When forwarding logs from Logstash to QRadar, the logs come with a Logstash prefix. How can we remove this prefix?
Using Elastic-Agent to send logs to Elasticsearch allows automatic log parsing (parser fields). If Elastic-Agent -> Logstash -> Elasticsearch and uses Logstash as an intermediary, will it affect the automatic log parsing fields?
Hope someone with experience can help answer, thanks
I'm not sure you can remove it if you use the syslog output as the output will add it.
But maybe if you switch to the plain udp output, something like this:
udp {
host => "192.168.3.180"
port => 514
codec => line {
format => "%{message}"
}
}
If you change the original message yes, it can affect and break the parsing in Elasticsearch side depending on the changes.
All Elastic Agent integrations uses Ingest pipelines to parse the messages, those pipelines expect to receive the raw message from the source, if you do any parsing on the message in logstash it may change the raw message to a format that the ingest pipeline cannot parse it.
If you change the original message yes, it can affect and break the parsing in Elasticsearch side depending on the changes.
All Elastic Agent integrations uses Ingest pipelines to parse the messages, those pipelines expect to receive the raw message from the source, if you do any parsing on the message in logstash it may change the raw message to a format that the ingest pipeline cannot parse it.
I probably won't change the original messages from the devices, but 1. I might remove the Elastic-agent prefix in Logstash, and 2. I categorize firewall logs into Traffic and UTM (Threat). The Traffic logs will be sent to Elasticsearch, while the UTM (Threat) logs will be sent to SIEM via UDP. My concern is whether these Logstash filters that remove parts of the log could impact the parsing by Elastic Agent integrations, indirectly causing issues in Elasticsearch's ability to parse the logs
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.