ADD a Counter for Every build

I am shipping logs(to ELK host) from two places for each build -

  1. using filebeat from one host to ELK host.
  2. using logstash plugin from jenkins to ELK host .

Two indexes are getting generated.

I want to pass a unique ID (which may a increment value such as count ++) everytime i run build or everytime the index is created.This unique ID may be a custom field and want to view this field in Kibana. Is this possible.Any input will be much appreciated.

You would need the build process to generate this and output it in the log file.

OKay. Thanks for the input.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.