# Filebeat - send a full config file every time is modified?

**URL:** <https://discuss.elastic.co/t/filebeat-send-a-full-config-file-every-time-is-modified/61318>\
**Category:** Beats\
**Created:** [September 22, 2016, 10:22pm UTC](https://discuss.elastic.co/t/filebeat-send-a-full-config-file-every-time-is-modified/61318 "2016-09-22T22:22:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![agonzalez](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@agonzalez](https://discuss.elastic.co/u/agonzalez)\
**Post date:** [September 22, 2016, 10:22pm UTC](https://discuss.elastic.co/t/filebeat-send-a-full-config-file-every-time-is-modified/61318/1 "2016-09-22T22:22:10Z")

</div>

How can i configure filebeat prospector to send the full content of a config file every time is modified?

Per example i want to send the full /etc/httpd/conf/httpd.conf file as a document everytime it is modified, not just new lines entries and in one just document, not a document per line.

---

<div class="post-metadata">

**Author:** ![Joshua\_Rich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshua_rich/32/44953_2.png) [@Joshua\_Rich](https://discuss.elastic.co/u/Joshua_Rich)\
**Post date:** [September 23, 2016, 1:50am UTC](https://discuss.elastic.co/t/filebeat-send-a-full-config-file-every-time-is-modified/61318/2 "2016-09-23T01:50:35Z")

</div>

Filebeat is designed to read a file line-by-line. It's not designed to index an entire file each time. You'd be better off writing your own application to index whole files like this with one of the [language clients](https://www.elastic.co/guide/en/elasticsearch/client/index.html). You may also want to look into parsing the file as a bunch of fields in a document rather than as a single field in a single document.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [September 23, 2016, 6:54am UTC](https://discuss.elastic.co/t/filebeat-send-a-full-config-file-every-time-is-modified/61318/3 "2016-09-23T06:54:08Z")

</div>

We had similar requests in the past mainly for binary files. One idea we had that this could be added as new prospector type but that will require quite a bit of work and refactoring in filebeat.

---

<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:** [October 13, 2016, 10:22pm UTC](https://discuss.elastic.co/t/filebeat-send-a-full-config-file-every-time-is-modified/61318/4 "2016-10-13T22:22:29Z")

</div>

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