# Logstash-7.17.12 file input not working

**URL:** <https://discuss.elastic.co/t/logstash-7-17-12-file-input-not-working/341527>\
**Category:** Logstash\
**Created:** [August 24, 2023, 2:58am UTC](https://discuss.elastic.co/t/logstash-7-17-12-file-input-not-working/341527 "2023-08-24T02:58:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jongwook\_Seong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jongwook_seong/32/124916_2.png) [@Jongwook\_Seong](https://discuss.elastic.co/u/Jongwook_Seong)\
**Post date:** [August 24, 2023, 2:58am UTC](https://discuss.elastic.co/t/logstash-7-17-12-file-input-not-working/341527/1 "2023-08-24T02:58:32Z")

</div>

I am using logstash-7.17.12 to input the contents of logstash-test.conf file. The contents of **logstash-test.conf** are as follows.

```auto
input {
  file {
    path => "C:/Users/user/logstash-7.17.12/config/filter-example.log"
    start_position => "beginning"
    sincedb_path => "nul"
  }
}

output {
  stdout { }
}

```

And the **filter-example.log** file shown above is as follows.

```auto
[2020-01-02 14:17] [ID1] 192.10.2.6 9500 [INFO] - connected.
[2020/01/02 14:19:25] [ID2] 218.25.32.70 1070 [warn] - busy server.

```

However, an error occurs and the contents of the command are as follows.

```auto
C:\Users\user\logstash-7.17.12>.\bin\logstash.bat -f .\config\logstash-test.conf
"Using bundled JDK: C:\Users\user\logstash-7.17.12\jdk\bin\java.exe"
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Sending Logstash logs to C:/Users/user/logstash-7.17.12/logs which is now configured via log4j2.properties
[2023-08-24T11:53:36,568][INFO][logstash.runner] Log4j configuration path used is: C:\Users\user\logstash-7.17.12\config\log4j2.properties
[2023-08-24T11:53:36,574][INFO][logstash.runner] Starting Logstash {"logstash.version"=>"7.17.12", "jruby.version"=>"jruby 9.2.20.1 (2.5.8) 2021-11-30 2a2962fbd1 OpenJDK 64-Bit Server VM 11.0.19+7 on 11.0.19+7 +indy +jit [mswin32-x86_64]"}
[2023-08-24T11:53:36,575][INFO][logstash.runner] JVM bootstrap flags: [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djdk.io.File.enableADS=true, -Djruby.compile.invokedynamic=true, -Djruby.jit.threshold=0, -Djruby.regexp.interruptible=true, -XX:+HeapDumpOnOutOfMemoryError, -Djava.security.egd=file:/dev/urandom, -Dlog4j2.isThreadContextMapInheritable=true]
[2023-08-24T11:53:36,618][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2023-08-24T11:53:37,835][INFO][logstash.config.source.local.configpathloader] No config files found in path {:path=>"C:/Users/ypwa1/logstash-7.17.12/config/logstash-test.conf"}
[2023-08-24T11:53:37,838][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2023-08-24T11:53:37,864][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=>9600, :ssl_enabled=>false}
[2023-08-24T11:53:43,080][INFO][logstash.runner] Logstash shut down.
[2023-08-24T11:53:43,089][FATAL][org.logstash.Logstash] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]
        at C_3a_.Users.user.logstash_minus_7_dot_17_dot_12.lib.bootstrap.environment.<main>(C:\Users\user\logstash-7.17.12\lib\bootstrap\environment.rb:94) ~[?:?]

```

I think it's a problem with file input of logstash because it works normally with the -e option. How can I solve this problem?

---

<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:** [August 24, 2023, 3:07am UTC](https://discuss.elastic.co/t/logstash-7-17-12-file-input-not-working/341527/2 "2023-08-24T03:07:01Z")

</div>

> [@Jongwook\_Seong](#):
>
> ```auto
> [2023-08-24T11:53:37,835][INFO][logstash.config.source.local.configpathloader] No config files found in path {:path=>"C:/Users/ypwa1/logstash-7.17.12/config/logstash-test.conf"}
> [2023-08-24T11:53:37,838][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
> 
> ```

It has nothing to do with the file input. logstash hasn't got as far as knowing it should use a file input. It cannot read the configuration file saying that. The relative path may be wrong, or the file (or directory) permissions/ownership may be wrong.

---

<div class="post-metadata">

**Author:** ![Jongwook\_Seong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jongwook_seong/32/124916_2.png) [@Jongwook\_Seong](https://discuss.elastic.co/u/Jongwook_Seong)\
**Post date:** [August 24, 2023, 4:44am UTC](https://discuss.elastic.co/t/logstash-7-17-12-file-input-not-working/341527/3 "2023-08-24T04:44:44Z")

</div>

Ah.. I intentionally edited it as 'user' to hide the name 'ypwa1' when I posted it here, but there are places I missed.. T\_T  
I don't know if it's a path problem..

---

<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:** [September 21, 2023, 4:44am UTC](https://discuss.elastic.co/t/logstash-7-17-12-file-input-not-working/341527/4 "2023-09-21T04:44:45Z")

</div>

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