# No config files found and no configuration source found

**URL:** <https://discuss.elastic.co/t/no-config-files-found-and-no-configuration-source-found/242003>\
**Category:** Logstash\
**Created:** [July 21, 2020, 10:27am UTC](https://discuss.elastic.co/t/no-config-files-found-and-no-configuration-source-found/242003 "2020-07-21T10:27:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bigranawab](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@Bigranawab](https://discuss.elastic.co/u/Bigranawab)\
**Post date:** [July 21, 2020, 10:27am UTC](https://discuss.elastic.co/t/no-config-files-found-and-no-configuration-source-found/242003/1 "2020-07-21T10:27:15Z")

</div>

\</\>  
WARNING: Could not find logstash.yml which is typically located in $LS\_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults  
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console  
[WARN] 2020-07-20 23:45:45.939 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[INFO] 2020-07-20 23:45:46.057 [LogStash::Runner] configpathloader - No config files found in path {:path=\>"/etc/logstash/conf.d/fortigate.conf"}  
[ERROR] 2020-07-20 23:45:46.064 [LogStash::Runner] sourceloader - No configuration found in the configured sources.  
Configuration OK  
[INFO] 2020-07-20 23:45:46.067 [LogStash::Runner] runner - Using config.test\_and\_exit mode. Config Validation Result: OK. Exiting Logstash  
\</\>  
I am trying to resolve this issue. can someone help here.  
I have written a config file

```auto
input {
  udp {
    port => 5555
    type => syslog
  }
}

filter {
  if [type] == "syslog" {
    grok {
      match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }
      add_field => ["received_at", "%{@timestamp}"]
      add_field => ["received_from", "%{host}"]
    }
    date {
      match => ["syslog_timestamp", "MMM d HH:mm:ss.SSS", "MMM dd HH:mm:ss.SSS"]
      timezone => "UTC"
    }
  }
}

output {
  elasticsearch {
    hosts => ["x.x.x.x:9200"]
    index => fortigate
  }
  stdout { codec => rubydebug }
}

```

---

<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:** [August 18, 2020, 10:35am UTC](https://discuss.elastic.co/t/no-config-files-found-and-no-configuration-source-found/242003/2 "2020-08-18T10:35:49Z")

</div>

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