# Help with starting logstash with my config

**URL:** <https://discuss.elastic.co/t/help-with-starting-logstash-with-my-config/167442>\
**Category:** Logstash\
**Created:** [February 7, 2019, 11:57am UTC](https://discuss.elastic.co/t/help-with-starting-logstash-with-my-config/167442 "2019-02-07T11:57:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hHelen](https://avatars.discourse-cdn.com/v4/letter/h/7ea924/32.png) [@hHelen](https://discuss.elastic.co/u/hHelen)\
**Post date:** [February 7, 2019, 11:57am UTC](https://discuss.elastic.co/t/help-with-starting-logstash-with-my-config/167442/1 "2019-02-07T11:57:32Z")

</div>

I have installed logstash but struggling to get it working.

my config is located here `/etc/logstash/logstash-test.conf`  
And the content is:  
input {  
beats {  
port =\> "5044"  
}  
}  
output {  
elasticsearch { hosts =\> ["localhost:9200"]  
index =\> "logstash-%{+YYYY.MM.dd}"  
}  
stdout { codec =\> rubydebug }  
}

This is how I tried running it but nothing happens when I check on kibana.

cd /usr/share/logstash sudo bin/logstash -f /etc/logstash/logstash-test.conf

I have already created an index for logstash-\*

Please help.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 7, 2019, 3:01pm UTC](https://discuss.elastic.co/t/help-with-starting-logstash-with-my-config/167442/2 "2019-02-07T15:01:27Z")

</div>

OK, so you have configured a beats input. Do you have a beat running that is sending data to it? Can you show the configuration for that?

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [February 7, 2019, 4:05pm UTC](https://discuss.elastic.co/t/help-with-starting-logstash-with-my-config/167442/3 "2019-02-07T16:05:37Z")

</div>

also you missing one } on output section  
output {  
elsasticsearch { ....... }  
stdout {.....}  
}

---

<div class="post-metadata">

**Author:** ![hHelen](https://avatars.discourse-cdn.com/v4/letter/h/7ea924/32.png) [@hHelen](https://discuss.elastic.co/u/hHelen)\
**Post date:** [February 8, 2019, 1:44pm UTC](https://discuss.elastic.co/t/help-with-starting-logstash-with-my-config/167442/4 "2019-02-08T13:44:12Z")

</div>

I go it working now, it turns out that I had the config file outside the config.d folder; so it wasn't being used when I restarted logstash. All good now.

---

<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 8, 2019, 1:44pm UTC](https://discuss.elastic.co/t/help-with-starting-logstash-with-my-config/167442/5 "2019-03-08T13:44:21Z")

</div>

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