this is my conf file and it's ok i've created an index with only errors match
but now it's possible create a second indexs with file warning or custom?
code => "event.cancel if not event.get('message').include? 'WARN' "
.....
elasticsearch {
hosts => ["elasticsearch:9200"]
index => "warn" ?????? other index file??? is possible
}
You can use conditionals with multiple branches. See this thread.
Splitting your data into a large number of small indexes is not a good practice because a large number of indexes/shards is more costly than a single index with tagged events.
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.