# Auditbeat collects old data on Linux system

**URL:** <https://discuss.elastic.co/t/auditbeat-collects-old-data-on-linux-system/296814>\
**Category:** Beats\
**Tags:** auditbeat\
**Created:** [February 10, 2022, 8:29am UTC](https://discuss.elastic.co/t/auditbeat-collects-old-data-on-linux-system/296814 "2022-02-10T08:29:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bo\_Pham\_Nguyen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bo_pham_nguyen/32/48980_2.png) [@Bo\_Pham\_Nguyen](https://discuss.elastic.co/u/Bo_Pham_Nguyen)\
**Post date:** [February 10, 2022, 8:29am UTC](https://discuss.elastic.co/t/auditbeat-collects-old-data-on-linux-system/296814/1 "2022-02-10T08:29:12Z")

</div>

Hi team, we are facing an issue when installing Auditbeat on a new machine that collects historical data 2020 2021. Any way to fix this?  
This is the configuration for Auditbeat

```auto
auditbeat.modules:

- module: system

  datasets:

    - host # General host information, e.g. uptime, IPs

    - login # User logins, logouts, and system boots.

    - package # Installed, updated, and removed packages

    - process # Started and stopped processes

    - user # User information

  state.period: 12h

  # detect any changes.

  user.detect_password_changes: true

  # File patterns of the login record files.

  login.wtmp_file_pattern: /var/log/wtmp*

  login.btmp_file_pattern: /var/log/btmp*

#==================== Elasticsearch template setting ==========================

setup.template.settings:

  index.number_of_shards: 0

  #index.codec: best_compression

  #_source.enabled: false

setup.kibana:

output.logstash:

  hosts: ["172.16.xxx.xxx:50xx"]

#================================ Processors =====================================

# Configure processors to enhance or manipulate events generated by the beat.

processors:

  - add_host_metadata: ~

  - add_cloud_metadata: ~

  - add_docker_metadata: ~

```

---

<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:** [March 10, 2022, 10:29am UTC](https://discuss.elastic.co/t/auditbeat-collects-old-data-on-linux-system/296814/2 "2022-03-10T10:29:50Z")

</div>

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