Hi
My current setting is filebeat -> Elasticsearch -> Kibana.
Current behavior:
- Send one file to the work directory to be ingested by filebeat and send to the Elasticsearch
- log output is sent to Elasticsearch without issues.
- Send another file to the same work directory and expect Filebeat to ingest and send the log data to Elasticsearch -- no issue.
- The new log data is appended to the same index and when visualize the data, I can see both the old and new data.
Desired behavior:
- Send one file to the work directory to be ingested by filebeat and send to the Elasticsearch
- log output is sent to Elasticsearch without issues.
- Send another file to the same work directory and expect Filebeat to ingest and send the log data to Elasticsearch -- no issue.
- a new index is created for the new log file or the old and the new data can be handle separately.
My question is:
a. How can I configure the index template to create a new index file per new log file?
My goal is to find a way to separate the data from the 2 different log files.
b. If filebeat does not support different index per new log file, can we use another way to separate new and old data (docs) from one common index.
Best Regards
Hung Le