# Bug in 5.2.0: --logstash.data command line option ignored

**URL:** <https://discuss.elastic.co/t/bug-in-5-2-0-logstash-data-command-line-option-ignored/74662>\
**Category:** Logstash\
**Created:** [February 10, 2017, 1:58pm UTC](https://discuss.elastic.co/t/bug-in-5-2-0-logstash-data-command-line-option-ignored/74662 "2017-02-10T13:58:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaszloHont](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@LaszloHont](https://discuss.elastic.co/u/LaszloHont)\
**Post date:** [February 10, 2017, 1:58pm UTC](https://discuss.elastic.co/t/bug-in-5-2-0-logstash-data-command-line-option-ignored/74662/1 "2017-02-10T13:58:02Z")

</div>

logstash isn't parsing the --path.data option on the command line. Bug?

```
-bash-4.1$ /opt/logstash-LATEST/bin/logstash --path.data /opt/logstash-data/data/ 
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
ArgumentError: Path "/opt/logstash-LATEST/data" does not exist, and I failed trying to create it: Errno::EACCES - Permission denied - /opt/logstash-LATEST/data
      value at /opt/logstash-LATEST/logstash-core/lib/logstash/settings.rb:448
        tap at org/jruby/RubyKernel.java:1858
      value at /opt/logstash-LATEST/logstash-core/lib/logstash/settings.rb:440
  get_value at /opt/logstash-LATEST/logstash-core/lib/logstash/settings.rb:56
   LogStash at /opt/logstash-LATEST/logstash-core/lib/logstash/environment.rb:57
     (root) at /opt/logstash-LATEST/logstash-core/lib/logstash/environment.rb:9
    require at org/jruby/RubyKernel.java:1040
     (root) at /opt/logstash-LATEST/logstash-core/lib/logstash/runner.rb:1
    require at org/jruby/RubyKernel.java:1040
     (root) at /opt/logstash-LATEST/lib/bootstrap/environment.rb:70
```

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 10, 2017, 3:56pm UTC](https://discuss.elastic.co/t/bug-in-5-2-0-logstash-data-command-line-option-ignored/74662/2 "2017-02-10T15:56:58Z")

</div>

You really should define `path.data` in the `logstash.yml` file, which—in your case—seems like it should be in `/opt/logstash-LATEST/config`.

---

<div class="post-metadata">

**Author:** ![LaszloHont](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@LaszloHont](https://discuss.elastic.co/u/LaszloHont)\
**Post date:** [February 10, 2017, 5:43pm UTC](https://discuss.elastic.co/t/bug-in-5-2-0-logstash-data-command-line-option-ignored/74662/3 "2017-02-10T17:43:54Z")

</div>

I did, but that didn't work either!

Here is what I have in logstash.yml:

```
path.data: /opt/logstash-data/data
path.logs: /opt/logstash-logs/

```

My setup is a clean binary extracted from the tar.gz file:

```
/opt/logstash-LATEST

```

Then a data dir and a log dir:

```
/opt/logstash-data
/opt/logstash-logs

```

For now I am using a symlink on data ☹

I am using the --path.settings option to logstash.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 10, 2017, 5:55pm UTC](https://discuss.elastic.co/t/bug-in-5-2-0-logstash-data-command-line-option-ignored/74662/4 "2017-02-10T17:55:52Z")

</div>

What OS are you using? I will try to replicate this.

---

<div class="post-metadata">

**Author:** ![LaszloHont](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@LaszloHont](https://discuss.elastic.co/u/LaszloHont)\
**Post date:** [February 10, 2017, 7:16pm UTC](https://discuss.elastic.co/t/bug-in-5-2-0-logstash-data-command-line-option-ignored/74662/5 "2017-02-10T19:16:11Z")

</div>

openjdk 1.8 on centos 7 iirc.

---

<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 10, 2017, 7:16pm UTC](https://discuss.elastic.co/t/bug-in-5-2-0-logstash-data-command-line-option-ignored/74662/6 "2017-03-10T19:16:29Z")

</div>

Closed on March 10, 2017, 7:16pm UTC

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