# Auditbeat scan rate setting module: file\_integrity

**URL:** <https://discuss.elastic.co/t/auditbeat-scan-rate-setting-module-file-integrity/291756>\
**Category:** Beats\
**Tags:** auditbeat\
**Created:** [December 14, 2021, 7:29am UTC](https://discuss.elastic.co/t/auditbeat-scan-rate-setting-module-file-integrity/291756 "2021-12-14T07:29:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cva/32/85514_2.png) [@cva](https://discuss.elastic.co/u/cva)\
**Post date:** [December 14, 2021, 7:29am UTC](https://discuss.elastic.co/t/auditbeat-scan-rate-setting-module-file-integrity/291756/1 "2021-12-14T07:29:00Z")

</div>

My goal is to get the exact number of logs along the path specified in auditbeat in elastic to build a schedule for receiving logs by day in kibana.  
The problem is that I get several duplicates of the same log in elastic. Auditbeat manages to track changes in the log file and send several messages through it.  
The multiline log file consists of a request and a response to a request, after receiving a response, the state of the file does not change, the response comes in a few fractions of seconds:

```auto
2021-12-09 16:52:24.6435|INFO|logfile|Запрос:
2021-12-09 16:52:24.6747|INFO|logfile|Ответ:

```

Help to adjust the frequency of scanning files to avoid duplicates.  
Or maybe there is a way how to attach the generated hash of the file as its id in elastic?

My auditbeat config:

```auto
auditbeat.modules:
- module: file_integrity
  paths:
  - C:/xml_logs/GT/xml/
  scan_at_start: true
  recursive: true
setup.template.settings:
  index.number_of_shards: 1

tags: ["xml"]

output.logstash:
  hosts: ["10.1.1.4:5044"]

logging:
  to_files: true
  files:
    path: C:/ProgramData/auditbeat/Logs
  level: debug

```

---

<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:** [January 11, 2022, 9:29am UTC](https://discuss.elastic.co/t/auditbeat-scan-rate-setting-module-file-integrity/291756/2 "2022-01-11T09:29:01Z")

</div>

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