Elasticsearch for Nomad job logs

Hi,

I have setup elastic agent on my nomad client nodes to forward logs to my elasticsearch cluster controlled via an elastic fleet agent.

Looking at the logs and the fields available I realized that there is some essential ones for me missing, like task group, node pool and node id. So I looked at the elastic beats source code and added some of the ones I required.

Does anyone here use Elasticsearch for the nomad job logs as well and might miss certain fields as well. I am thinking about opening a pull request and would prefer to have more fields at once added, that might also help others

Thanks for any input

2 Likes