# Multiple events from system module login dataset

**URL:** https://discuss.elastic.co/t/multiple-events-from-system-module-login-dataset/180242
**Category:** Beats
**Tags:** auditbeat
**Created:** [May 8, 2019, 7:26pm UTC](https://discuss.elastic.co/t/multiple-events-from-system-module-login-dataset/180242 "2019-05-08T19:26:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![olatunde.tokun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/olatunde.tokun/32/110546_2.png) [@olatunde.tokun](https://discuss.elastic.co/u/olatunde.tokun)
#### Post date: [May 8, 2019, 7:26pm UTC](https://discuss.elastic.co/t/multiple-events-from-system-module-login-dataset/180242/1 "2019-05-08T19:26:03Z")

</div>

Been running auditbeat in my test environment for a while.

I notice that auditbeat indexes the same login event more than once (between 5 to 10times) for every logon or logout.

Auditbeat Version: auditbeat version 6.7.0 (amd64), libbeat 6.7.0  
Linux Version: Linux 3.10.0-862.9.1.el7.x86\_64 #1 SMP Mon Jul 16 16:29:36 UTC 2018 x86\_64 x86\_64 x86\_64 GNU/Linux  
Issue: Duplicate indexed event for the same /var/log/wtmp log

There is 1 entry for the event in the login database:  
`sudo last -f "/var/log/wtmp"`

login module config

```auto
- module: system
  datasets:
    - login
  period: 1h
  state.period: 24h
  user.detect_password_changes: true
  login.wtmp_file_pattern: /var/log/wtmp
  login.btmp_file_pattern: /var/log/btmp

```

Multiple login events indexed for the same @timestamp in the wtmp log  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/e/5ed2bd39e698b4d69fd92f9c087e40b53ebdb997.png)

---

<div class="post-metadata">

### Author: ![cwurm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cwurm/32/34882_2.png) [@cwurm](https://discuss.elastic.co/u/cwurm)
#### Post date: [May 8, 2019, 11:23pm UTC](https://discuss.elastic.co/t/multiple-events-from-system-module-login-dataset/180242/2 "2019-05-08T23:23:52Z")

</div>

Thanks @olatunde.tokun - that's indeed a bug. I've already merged a fix ([https://github.com/elastic/beats/pull/12028](https://github.com/elastic/beats/pull/12028)) - the backport to versions 6.x and 7.x should be around the corner.

---

<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: [May 29, 2019, 11:23pm UTC](https://discuss.elastic.co/t/multiple-events-from-system-module-login-dataset/180242/3 "2019-05-29T23:23:57Z")

</div>

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