I want to have configurable filters, basically to compare value from an input data field. I want to have configurable values, which should come from the database(preferred) or file (otherwise): for example
if([url][IP]== ValuefromDB or fromFile){
// Do something
}
Is it possible to achieve this?
Adding to this, I would like to load config without restarting logstash, is it possible?
You might be able to implement this using a jdbc_streaming or jdbc_static filter, or a translate filter in the case of a file. Or if it is really a single value then transfer the value to an environment variable and use a $reference.
If you enable --config.reload.automatic then logstash polls the input file every few seconds to see if it has changed and reloads it when it has changed.
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.