My aim is to include an identifier for logs of a few Jenkins Jobs that run in sequence.
Kindly give your opinion on the following --
Is there any way to append an ID such as '1234' to each document entry i.e each line of log by using logstash ? I am not planning to append any hash value , rather a readable ID .I can find ways to include an increment value for each log entry. However, I want to include only one ID such that a particular sequence of jobs can be identified.
Is it possible to pass a variable from a file to the filebeat index name ? The variable will hold an identifier such as a number.