# Logstash return nothing (stdout)

**URL:** https://discuss.elastic.co/t/logstash-return-nothing-stdout/88427
**Category:** Logstash
**Created:** [June 6, 2017, 1:28pm UTC](https://discuss.elastic.co/t/logstash-return-nothing-stdout/88427 "2017-06-06T13:28:55Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)
#### Post date: [June 6, 2017, 1:28pm UTC](https://discuss.elastic.co/t/logstash-return-nothing-stdout/88427/1 "2017-06-06T13:28:55Z")

</div>

Hello EveryOne,

I just installed logstash on a linux server (RPM installation).  
I have a little problem when I run it.

Here is my configuration file:

```
input {
  file {
          path => "/home/ldap/user/*.log"
          #sincedb_path => "/dev/null"
         }
}

output {
              stdout{codec => rubydebug}
             }

```

When I run logstash with this configuration file ( `[root@lcmci021 bin]# ./logstash --path.settings /etc/logstash -f test.conf`) they return me this message :  
`Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties`  
But he don't return me the log.

Thanks for help.

---

<div class="post-metadata">

### Author: ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)
#### Post date: [June 6, 2017, 1:40pm UTC](https://discuss.elastic.co/t/logstash-return-nothing-stdout/88427/2 "2017-06-06T13:40:10Z")

</div>

When I go see the logstash log I find the following error:  
`Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the "path.data" setting.`

But I do not understand because I have only one logstash install on the server. How do I check if there are two? And how to delete one of the two?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [June 7, 2017, 10:16am UTC](https://discuss.elastic.co/t/logstash-return-nothing-stdout/88427/3 "2017-06-07T10:16:03Z")

</div>

If you have read that file before then it will be a sincedb issue.

---

<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 11, 2017, 2:33pm UTC](https://discuss.elastic.co/t/logstash-return-nothing-stdout/88427/4 "2017-06-11T14:33:07Z")

</div>

> But I do not understand because I have only one logstash install on the server. How do I check if there are two? And how to delete one of the two?

Are you also running Logstash as a service/daemon?

---

<div class="post-metadata">

### Author: ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)
#### Post date: [June 15, 2017, 2:53pm UTC](https://discuss.elastic.co/t/logstash-return-nothing-stdout/88427/6 "2017-06-15T14:53:28Z")

</div>

Yes. I launched it as a service first

---

<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 15, 2017, 3:18pm UTC](https://discuss.elastic.co/t/logstash-return-nothing-stdout/88427/7 "2017-06-15T15:18:36Z")

</div>

It's not complaining that you have two Logstash _installations_. It's complaining that you're trying to run the same installation in two processes that share the same data directory.

The simplest way around this is probably to use the `--path.data` command line option to point the second Logstash process to another directory (e.g. a temporary one that you throw away afterwards).

---

<div class="post-metadata">

### Author: ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)
#### Post date: [June 19, 2017, 7:28am UTC](https://discuss.elastic.co/t/logstash-return-nothing-stdout/88427/8 "2017-06-19T07:28:33Z")

</div>

Ok thank you.

But how to run logstash as a service with a configuration file for example? Because I only know the following way with the command: logstash -f.

---

<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 19, 2017, 8:08am UTC](https://discuss.elastic.co/t/logstash-return-nothing-stdout/88427/9 "2017-06-19T08:08:16Z")

</div>

Have a look at [https://www.elastic.co/guide/en/logstash/current/running-logstash.html](https://www.elastic.co/guide/en/logstash/current/running-logstash.html). See also [https://www.elastic.co/guide/en/logstash/current/dir-layout.html](https://www.elastic.co/guide/en/logstash/current/dir-layout.html) for more about the directory layout.

---

<div class="post-metadata">

### Author: ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)
#### Post date: [June 20, 2017, 1:14pm UTC](https://discuss.elastic.co/t/logstash-return-nothing-stdout/88427/10 "2017-06-20T13:14:39Z")

</div>

OK. Thanks !

---

<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 18, 2017, 1:14pm UTC](https://discuss.elastic.co/t/logstash-return-nothing-stdout/88427/11 "2017-07-18T13:14:48Z")

</div>

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