# Auditbeat configuring file

**URL:** https://discuss.elastic.co/t/auditbeat-configuring-file/169751
**Category:** Beats
**Tags:** auditbeat
**Created:** [February 25, 2019, 5:12am UTC](https://discuss.elastic.co/t/auditbeat-configuring-file/169751 "2019-02-25T05:12:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)
#### Post date: [February 25, 2019, 5:12am UTC](https://discuss.elastic.co/t/auditbeat-configuring-file/169751/1 "2019-02-25T05:12:13Z")

</div>

Hello ,

I just tried to work on auditbeat this is my auditbeat.yml file

auditbeat.modules:

- module: file\_integrity  
paths:
  - /home/rdave/Desktop/xyz.cfg.txt  
setup.template.enabled: false  
reload.enabled: true  
reload.period: 10s  
output.elasticsearch:  
hosts: ['localhost:9200']  
index: "auditbeat"

I want to observe the change in the configuration file along with the username and I also want to know what was changed in the config file.  
A help would be highly appreciated

Regards

---

<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: [March 1, 2019, 9:19am UTC](https://discuss.elastic.co/t/auditbeat-configuring-file/169751/2 "2019-03-01T09:19:02Z")

</div>

Hi @shrikantgulia, the `file_integrity` module can't tell you who changed a file - the underlying APIs do not support it.

Which operating system do you want to do this on? On Linux, this is possible using the `auditd` module and an audit rule like `-w /home/rdave/Desktop/xyz.cfg.txt -p wa -k file-changed`.

There is currently no way in Auditbeat (or any other Beat) to track what changes happened to a file. This is not something operating systems typically expose directly, and so it would require keeping a copy of the file for comparison. There is an open Github issue if you're interested in tracking this: [https://github.com/elastic/beats/issues/7860](https://github.com/elastic/beats/issues/7860)

---

<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 22, 2019, 9:23am UTC](https://discuss.elastic.co/t/auditbeat-configuring-file/169751/3 "2019-03-22T09:23:59Z")

</div>

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