I have the situation where I want to parse from the log file and insert each log as a document in elasticsearch but same time I want to get log metadata from another file and insert to the documents created by log file in each document. So I thought of some solutions. So I come up with following questions.
- I'm not sure how to do in a same logstash job.
- Is there any way of triggering another logstash after finish parsing of a log file. (As I can use unique id to do that)