We have tomcat access logs which we read from a FileBeat input and pass to an ElasticSearch output IndexA (fields a, b, c).
We would however like to have some of these log entries (the 400 and 500 errors) additionally in a different IndexB on the same ElasticSearch server. The documents should have a different format (fields d, e, f).
What are the options for doing this?
Some ideas:
Write the selected error docs to a file and feed this file to filebeat->logstash?
Write the selected error docs to logstash directly (via TCP/syslog)?
Somehow split the event in the logstash pipeline?
Use an ElasticSearch query to get the error docs from IndexA? How to load only new docs?
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.