# Include Exim main log

**URL:** <https://discuss.elastic.co/t/include-exim-main-log/282243>\
**Category:** Kibana\
**Created:** [August 23, 2021, 2:27pm UTC](https://discuss.elastic.co/t/include-exim-main-log/282243 "2021-08-23T14:27:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![BaseSL](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@BaseSL](https://discuss.elastic.co/u/BaseSL)\
**Post date:** [August 23, 2021, 2:27pm UTC](https://discuss.elastic.co/t/include-exim-main-log/282243/1 "2021-08-23T14:27:17Z")

</div>

Hello,

how can I, in the current version, include the Exim log and search entries via Kibana ?

About Filebeat I can transfer the log into Kibana, but there the assignment is not correct. So what do I have to set, that I search for a (example) email address in Kibana and get all entries from the main.log (from exim) - that match the email ?

Somehow I don't know what to do. I hope someone can help me.

Thanks a lot  
BaseSL

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 23, 2021, 10:12pm UTC](https://discuss.elastic.co/t/include-exim-main-log/282243/2 "2021-08-23T22:12:27Z")

</div>

Welcome to our community! 😃

Just so I am understanding correctly - you are sending the exim logs via Filebeat?

> [@BaseSL](#):
>
> but there the assignment is not correct

What does this mean sorry?

---

<div class="post-metadata">

**Author:** ![BaseSL](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@BaseSL](https://discuss.elastic.co/u/BaseSL)\
**Post date:** [August 24, 2021, 8:06am UTC](https://discuss.elastic.co/t/include-exim-main-log/282243/3 "2021-08-24T08:06:05Z")

</div>

Thank you very much for the nice welcome to the community.

So with Filebeat I import the main.log (from exim) into ELA/Kibana.

This is what my filebeat.yml looks like

```auto
filebeat.inputs:

# Each - is an input. Most options can be set at the input level, so
# you can use different inputs for various configurations.
# Below are the input specific configurations.

- type: log

  # Change to true to enable this input configuration.
  enabled: true

  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - /var/log/exim/main.log
    #- c:\programdata\elasticsearch\logs\*

```

In Kibana it looks like this

```auto

@timestamp:Aug 24, 2021 @ 10:01:00.011 agent.ephemeral_id:c0dff231-f7d3-4c54-b7f6-ed0642d02ccb 
agent.hostname:centos7-ela agent.id:0313ca40-82cf-43f5-a30f-6462b81d1364 agent.name:centos7-ela 
agent.type:filebeat agent.version:7.14.0 ecs.version:1.10.0 host.architecture:x86_64 
host.containerized:false host.hostname:centos7-ela host.id:44a7caa7f42447a783293212cd5d080f 
host.ip:xxx.xxx.xx.xxx, fe80::250:56ff:feb0:1b48 host.mac:00:50:56:b0:1b:48 host.name:centos7-ela 
host.os.codename:Core host.os.family:redhat host.os.kernel:3.10.0-1160.36.2.el7.x86_64 
host.os.name:CentOS Linux host.os.name.text:CentOS Linux host.os.platform:centos host.os.type:linux 
host.os.version:7 (Core) input.type:log log.file.path:/var/log/exim/main.log log.offset:1,512,705 
message:2021-08-22 10:02:10 1mHiQk-00087D-1A <= test@test.de-

```

All this is under the tab (column) document.

But I would like to build it in a way that I have a column where the recipient is in it, in this  
example [test@test.de](mailto:test@test.de), and I can search for it via the search field.

Example: if I search for [test@test.de](mailto:test@test.de), I would like to see all entries that have [test@test.de](mailto:test@test.de) as recipient.

And I do not know how to do that ? Probably a template is missing here or something.

Can you help me there ? I have already looked at the following link [https://graemef.wordpress.com/](https://graemef.wordpress.com/) but I do not get anywhere.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 24, 2021, 9:30am UTC](https://discuss.elastic.co/t/include-exim-main-log/282243/4 "2021-08-24T09:30:38Z")

</div>

Right that's a bit clearer 🙂

You will need to parse the events so they are split up in Elasticsearch. Try something like [GitHub - sboschert/filebeat-module-exim4: A Filebeat module that parses log files created by Exim 4.\</](https://github.com/sboschert/filebeat-module-exim4)

---

<div class="post-metadata">

**Author:** ![BaseSL](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@BaseSL](https://discuss.elastic.co/u/BaseSL)\
**Post date:** [August 24, 2021, 10:28am UTC](https://discuss.elastic.co/t/include-exim-main-log/282243/5 "2021-08-24T10:28:09Z")

</div>

```auto
2021-08-24T12:48:41.226+0200 ERROR instance/beat.go:989 Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).
Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).

```

---

<div class="post-metadata">

**Author:** ![BaseSL](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@BaseSL](https://discuss.elastic.co/u/BaseSL)\
**Post date:** [August 24, 2021, 1:14pm UTC](https://discuss.elastic.co/t/include-exim-main-log/282243/6 "2021-08-24T13:14:45Z")

</div>

the error occurs when restarting the filebeat. After adding and activating the exim4 module.

I just have no idea what the problem is.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 25, 2021, 1:04am UTC](https://discuss.elastic.co/t/include-exim-main-log/282243/7 "2021-08-25T01:04:46Z")

</div>

Did you check to see if there's already a Beat process running?

---

<div class="post-metadata">

**Author:** ![BaseSL](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@BaseSL](https://discuss.elastic.co/u/BaseSL)\
**Post date:** [August 25, 2021, 9:01am UTC](https://discuss.elastic.co/t/include-exim-main-log/282243/8 "2021-08-25T09:01:22Z")

</div>

I have set up the whole server again, module is now active and the error does not appear anymore. There seems to have been a misconfiguration somewhere.

How can I create a field in Kibana (Discover), where the email address from the exim log is in it ?

EDIT: It looks exactly the same in Kibana as it did before the exim4 module was activated.

---

<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:** [September 22, 2021, 9:02am UTC](https://discuss.elastic.co/t/include-exim-main-log/282243/9 "2021-09-22T09:02:18Z")

</div>

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