# Old vs new configurations of logstash confuse me

**URL:** <https://discuss.elastic.co/t/old-vs-new-configurations-of-logstash-confuse-me/64819>\
**Category:** Logstash\
**Created:** [November 3, 2016, 8:38am UTC](https://discuss.elastic.co/t/old-vs-new-configurations-of-logstash-confuse-me/64819 "2016-11-03T08:38:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DimitrisFilippou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimitrisfilippou/32/13229_2.png) [@DimitrisFilippou](https://discuss.elastic.co/u/DimitrisFilippou)\
**Post date:** [November 3, 2016, 8:38am UTC](https://discuss.elastic.co/t/old-vs-new-configurations-of-logstash-confuse-me/64819/1 "2016-11-03T08:38:09Z")

</div>

Following this tutorial -\> [https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-16-04#install-elasticsearch](https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-16-04#install-elasticsearch)

once i installed logstash i created 3 files

File: /etc/logstash/conf.d/02-beats-input.conf

Content:  
input {  
beats {  
port =\> 5044  
ssl =\> true  
ssl\_certificate =\> "/etc/pki/tls/certs/logstash-forwarder.crt"  
ssl\_key =\> "/etc/pki/tls/private/logstash-forwarder.key"  
}  
}

File: /etc/logstash/conf.d/10-syslog-filter.conf

Content:  
filter {  
if [type] == "syslog" {  
grok {  
match =\> { "message" =\> "%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{GREEDYDATA:syslog\_message}" }  
add\_field =\> ["received\_at", "%{@timestamp}"]  
add\_field =\> ["received\_from", "%{host}"]  
}  
syslog\_pri { }  
date {  
match =\> ["syslog\_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]  
}  
}  
}

File: /etc/logstash/conf.d/30-elasticsearch-output.conf

Content:  
output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
sniffing =\> true  
manage\_template =\> false  
index =\> "%{[@metadata][beat]}-%{+YYYY.MM.dd}"  
document\_type =\> "%{[@metadata][type]}"  
}  
}

When i run $~ /usr/share/logstash/bin/logstash --configtest -f /etc/logstash/conf.d/

it says INFO: Logstash requires a setting file which is typically located in $LS\_HOME/config or /etc/logstash. If you installed Logstash through a package and are starting it manually please specify the location to this settings file by passing in "--path.settings=/path/.."  
ERROR: Failed to load settings file from "path.settings". Aborting... path.setting=/usr/share/logstash/config, exception=Errno::ENOENT, message=\>No such file or directory - /usr/share/logstash/config/logstash.yml

I want these configuration files but how can i use them ? i'm so confused with the changes between old and new logstash please help

---

<div class="post-metadata">

**Author:** ![jsvd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsvd/32/6203_2.png) [@jsvd](https://discuss.elastic.co/u/jsvd)\
**Post date:** [November 3, 2016, 10:21am UTC](https://discuss.elastic.co/t/old-vs-new-configurations-of-logstash-confuse-me/64819/2 "2016-11-03T10:21:33Z")

</div>

when logstash is installed by package rpm/deb, it is supposed to be executed with "service logstash start/stop/restart"

If you're running from the command line, you can additionally pass `--path.settings=/etc/logstash`to make it work.

This will be addressed in logstash 5.0.1 [https://github.com/elastic/logstash/pull/6172](https://github.com/elastic/logstash/pull/6172)

---

<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:31am UTC](https://discuss.elastic.co/t/old-vs-new-configurations-of-logstash-confuse-me/64819/3 "2017-07-06T04:31:20Z")

</div>


