# Logstash not reading changes to config file (file input)

**URL:** <https://discuss.elastic.co/t/logstash-not-reading-changes-to-config-file-file-input/53151>\
**Category:** Logstash\
**Created:** [June 17, 2016, 11:54am UTC](https://discuss.elastic.co/t/logstash-not-reading-changes-to-config-file-file-input/53151 "2016-06-17T11:54:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fetchmelogs](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fetchmelogs](https://discuss.elastic.co/u/fetchmelogs)\
**Post date:** [June 17, 2016, 11:54am UTC](https://discuss.elastic.co/t/logstash-not-reading-changes-to-config-file-file-input/53151/1 "2016-06-17T11:54:14Z")

</div>

Hi,

I have been struggling with this a bit so any help would be much appreciated.

I am running logstash 2.2.4.

First Problem:

I am parsing csv files locallyand needed to make a configuration change to my filter.

Details:

File input  
CSV filter  
Standard ES output

Once I made the configuration change however, logstash still seems to be picking up my old configuration.

I rolled back the change and simply changed the name of one of my csv columns and even this change does not reflect as new files are being parsed.

I deleted the sincedb file associated and restarted logstash and yet seem to have no luck.

Here's the kicker. I ran logstash explicitly with the rubydebug output (from /opt/logstash/bin) and the output shows it as clearly working yet when I run my logstash service, this change doesn't work.

Am I missing something here?

Second Problem:

Can I have a filter in the following format?

filter {

if (condition) {  
if (another condition) {  
mutate { }  
}  
}

Basically, can I do nesting of conditionals as I cannot seem to get this to work either.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 17, 2016, 11:57am UTC](https://discuss.elastic.co/t/logstash-not-reading-changes-to-config-file-file-input/53151/2 "2016-06-17T11:57:31Z")

</div>

> Once I made the configuration change however, logstash still seems to be picking up my old configuration.

Make sure you don't have any additional files in /etc/logstash/conf.d (like backup files). Logstash will read _all_ files from that directory.

> Can I have a filter in the following format?

Yes.

---

<div class="post-metadata">

**Author:** ![fetchmelogs](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@fetchmelogs](https://discuss.elastic.co/u/fetchmelogs)\
**Post date:** [June 17, 2016, 12:02pm UTC](https://discuss.elastic.co/t/logstash-not-reading-changes-to-config-file-file-input/53151/3 "2016-06-17T12:02:33Z")

</div>

Thank you for the quick response.

I double checked the directory and there isn't any other file.

Any other thoughts?

Does file input by chance cache the configuration in some other location that I haven't checked?

---

<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:** [July 6, 2017, 4:52am UTC](https://discuss.elastic.co/t/logstash-not-reading-changes-to-config-file-file-input/53151/4 "2017-07-06T04:52:12Z")

</div>


