# No such file or directory - No such directory?

**URL:** https://discuss.elastic.co/t/no-such-file-or-directory-no-such-directory/28890
**Category:** Logstash
**Created:** [September 9, 2015, 4:48am UTC](https://discuss.elastic.co/t/no-such-file-or-directory-no-such-directory/28890 "2015-09-09T04:48:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![samfukuda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samfukuda/32/4653_2.png) [@samfukuda](https://discuss.elastic.co/u/samfukuda)
#### Post date: [September 9, 2015, 4:48am UTC](https://discuss.elastic.co/t/no-such-file-or-directory-no-such-directory/28890/1 "2015-09-09T04:48:31Z")

</div>

Guys,

I've faced something an ambiguous as below. logstash is telling me no such file, but it exists.  
would you someone point me how I could fix this out ?

```
C:\logstash>bin\logstash agent -f conf\sample05.conf
io/console not supported; tty will not be manipulated
Logstash startup completed
e[31mNo such file or directory - No such directory: c:\logstash\conf\jmx.conf {:
level=>:error}e[0m
e[31morg/jruby/RubyDir.java:159:in `initialize'
org/jruby/RubyDir.java:409:in `foreach'
C:/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-jmx-0.1.5/lib/logstash/i
nputs/jmx.rb:321:in `run'
C:/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.4-java/lib/logstash/p
ipeline.rb:177:in `inputworker'
C:/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.4-java/lib/logstash/p
ipeline.rb:171:in `start_input' {:level=>:error}e[0m
Logstash shutdown completed

C:\logstash>type c:\logstash\conf\jmx.conf
{
  "host" : "127.0.0.1",
  "port" : 9010,
  "alias" : "test.homeserver.elasticsearch",
  "queries" : [
  {
    "object_name" : "java.lang:type=Memory",
    "object_alias" : "Memory"
  }, {
    "object_name" : "java.lang:type=Runtime",
    "attributes" : ["Uptime", "StartTime"],
    "object_alias" : "Runtime"
  }, {
    "object_name" : "java.lang:type=GarbageCollector,name=*",
    "attributes" : ["CollectionCount", "CollectionTime"],
    "object_alias" : "${type}.${name}"
  }, {
    "object_name" : "java.nio:type=BufferPool,name=*",
    "object_alias" : "${type}.${name}"
  } ]
}
C:\logstash>type conf\sample05.conf
input {
  jmx {
    path => "c:\logstash\conf\jmx.conf"
    polling_frequency => 60
    type => "jmx"
    nb_thread => 4
  }
}

output {
  stdout {
    codec => rubydebug
  }
}

C:\logstash>
```

---

<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: [September 9, 2015, 5:28am UTC](https://discuss.elastic.co/t/no-such-file-or-directory-no-such-directory/28890/2 "2015-09-09T05:28:31Z")

</div>

Have you tried using forward slashes in the Logstash configuration, i.e. c:/logstash/conf/jmx.conf instead of c:\logstash\conf\jmx.conf?

---

<div class="post-metadata">

### Author: ![samfukuda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samfukuda/32/4653_2.png) [@samfukuda](https://discuss.elastic.co/u/samfukuda)
#### Post date: [September 9, 2015, 5:55am UTC](https://discuss.elastic.co/t/no-such-file-or-directory-no-such-directory/28890/3 "2015-09-09T05:55:53Z")

</div>

Thanks for your reply, Magnus.

Yes, I did. both of them are telling same.

and just tried to seek out something /w --debug.  
in case of \ tells me - config LogStash::Inputs::Jmx/@path = "c:\logstash\conf\jmx.conf"  
in case of / tells me - config LogStash::Inputs::Jmx/@path = "c:/logstash/conf/jmx.conf"

yap, there's still nothing...

---

<div class="post-metadata">

### Author: ![samfukuda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samfukuda/32/4653_2.png) [@samfukuda](https://discuss.elastic.co/u/samfukuda)
#### Post date: [September 9, 2015, 9:03am UTC](https://discuss.elastic.co/t/no-such-file-or-directory-no-such-directory/28890/4 "2015-09-09T09:03:31Z")

</div>

resolved by myself.

logstash-input-jmx is requring path name and no acceptable file name...yap, that's my fault.  
I've verified it works when I create the path as c:\logstash\conf\jmx and moved a file jmx.conf to.

logstash\vendor\bundle\jruby\1.9\gems\logstash-input-jmx-0.1.5\lib\logstash\inputs\jmx.rb told me what I made.....

ciao,  
-susumu

---

<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, 5:29am UTC](https://discuss.elastic.co/t/no-such-file-or-directory-no-such-directory/28890/5 "2017-07-06T05:29:38Z")

</div>


