# Conf File for Logstash is not working

**URL:** <https://discuss.elastic.co/t/conf-file-for-logstash-is-not-working/84835>\
**Category:** Logstash\
**Created:** [May 7, 2017, 8:21am UTC](https://discuss.elastic.co/t/conf-file-for-logstash-is-not-working/84835 "2017-05-07T08:21:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartikeya\_sharma\_13](https://avatars.discourse-cdn.com/v4/letter/k/c77e96/32.png) [@kartikeya\_sharma\_13](https://discuss.elastic.co/u/kartikeya_sharma_13)\
**Post date:** [May 7, 2017, 8:21am UTC](https://discuss.elastic.co/t/conf-file-for-logstash-is-not-working/84835/1 "2017-05-07T08:21:06Z")

</div>

Is there anything wrong with this config file .I am right now logstash v 5.4.0

```
input { 
file{
path =>"C:/ELK/Data/iis_data.csv"
sincedb_path => "C:/ELK/Data/.sincedb"
start_position => "beginning"
type=>"csv"
}
file{
	path=>"C:/ELK/Data/Dewi_data.csv"
	sincedb_path => "C:/ELK/Data/.sincedb"
	start_position => "beginning"
	type=>"csv"
}
}
filter{
 if [path]== "C:/ELK/Data/iis_data.csv"
 {
	csv{
	separator => ","
	autogenerate_column_names => false
	columns => ["_time","clientip","host","id","key","Product","user","status","Method","type","uri_query"]
	}
	mutate {
			add_field => { "foo" => "Hello world, from iis_data" }
		merge => { 
			"foo" => "type" 
			}
			rename => { 
			"clientip" => "client_ip" 
			}
			update => { 
			"foo" => "My new message" 
			}
		}
	translate{
		field => "status"
	 	add_tag => ["Http"]
		dictionary_path => "C:/ELK/logstash/logstash-5.3.1/bin/http_status.csv"
	}

}
else if [path] == "C:/ELK/Data/Dewi_data.csv"
{
  csv{
	separator => ","
	autogenerate_column_names => false
	columns => ["_time","APPS","KPI","TypeOfKPI","Threshold","Current","High Value","Low Value"]
	}
	
	mutate {
		add_field => { "foo" => "Hello world, from Dewi Data" }
		convert => { 
		"Threshold" => "integer"
		"Current" => "integer"
		"High Value" => "integer"
		"Low Value" => "integer"
		}
	}

   }
  }
output {
if [path] == "C:/ELK/Data/iis_data.csv"
{
elasticsearch { 
hosts => "http://localhost:9200"
index => "iis_test_part2"
}
}
else if [path] == "C:/ELK/Data/Dewi_data.csv"
{
elasticsearch{
 hosts => "http://localhost:9200"
 index => "dewi_index_part2"
}
}
stdout {
	id => "my_plugin_id"
	
}
}
```

---

<div class="post-metadata">

**Author:** ![jupp](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@jupp](https://discuss.elastic.co/u/jupp)\
**Post date:** [May 7, 2017, 12:35pm UTC](https://discuss.elastic.co/t/conf-file-for-logstash-is-not-working/84835/2 "2017-05-07T12:35:26Z")

</div>

Do you get an error when you load the config? What is the output?

---

<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:** [June 4, 2017, 12:48pm UTC](https://discuss.elastic.co/t/conf-file-for-logstash-is-not-working/84835/3 "2017-06-04T12:48:30Z")

</div>

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