We are ingesting data from multiple data sources over port 514 and using Logstash to ship them out to multiple destinations. Is there a way to tag ingested data based on source IP so that it can be forwarded to the correct destination?
It depends on how your message looks like, you can use some string from your message to add tags in the filter block.
filter {
if "something" in [message] {
mutate {
add_tag => ["tag"]
}
}
}
Or you can also parse your message and use a similar condition with the value of specific field, but is not possible to do what you want in the input, there is nothing like that config.
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.