# Jenkins ELK Integration without using logstash plugin

**URL:** https://discuss.elastic.co/t/jenkins-elk-integration-without-using-logstash-plugin/188409
**Category:** Logstash
**Created:** [July 1, 2019, 9:18pm UTC](https://discuss.elastic.co/t/jenkins-elk-integration-without-using-logstash-plugin/188409 "2019-07-01T21:18:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mrashid](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mrashid](https://discuss.elastic.co/u/mrashid)
#### Post date: [July 1, 2019, 9:18pm UTC](https://discuss.elastic.co/t/jenkins-elk-integration-without-using-logstash-plugin/188409/1 "2019-07-01T21:18:18Z")

</div>

I am using file-beat to ship logs from Jenkins job host location by configuring filebeat.yml as follows :

**/builds/v2018/jenkins/jobs/ELK\_TEST/builds/\*/log**

The problem is that sometimes i get a **source** field in Kibana which is either one of the below :

1. /builds/v2018/jenkins/jobs/ELK\_TEST/builds/lastFailedBuild/log
2. /builds/v2018/jenkins/jobs/ELK\_TEST/builds/356/log

As can be seen in first one , there is no Jenkins job build ID . it just contains 'lastFailedBuild' whereas in option 2 , it has Jenkins job build id of 365 . **How can I display the jenkins job build ID against every line of log in kibana**. I know there is an option in jenkins-logstash plugin where a field is present to display the Jenkins build ID, but I dont want to use logstash plugin as I am using grok filter in my current configuration.

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [July 1, 2019, 10:09pm UTC](https://discuss.elastic.co/t/jenkins-elk-integration-without-using-logstash-plugin/188409/2 "2019-07-01T22:09:45Z")

</div>

> [@mrashid](#):
>
> **How can I display the jenkins job build ID against every line of log in kibana**.

I can see no way of doing this. If the file path does not contain an id where do you expect to get the id from?

---

<div class="post-metadata">

### Author: ![mrashid](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mrashid](https://discuss.elastic.co/u/mrashid)
#### Post date: [July 2, 2019, 4:56am UTC](https://discuss.elastic.co/t/jenkins-elk-integration-without-using-logstash-plugin/188409/3 "2019-07-02T04:56:31Z")

</div>

Thanks for responding back. I am just trying to find a way to pass the jenkins build-ID. No luck yet.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 30, 2019, 4:56am UTC](https://discuss.elastic.co/t/jenkins-elk-integration-without-using-logstash-plugin/188409/4 "2019-07-30T04:56:39Z")

</div>

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