Unable to get log files from directory in logstash

(Brandon Spratt) #1

I am trying to get logstash to read json logs from a directory.

Here is my config file:

input {
  file {
    path => "/home/ast/nifi-files-cp/*.json"
  tcp {
    port => 10000
    source => "message"
output {
  elasticsearch {
    hosts => ["localhost:9200"]
    index => "json"

Logstash does not give any error messages, it just does not pick the files up out of the directory.

Any help is appreciated. Thanks!

(Mark Walkom) #2

If you have processed the data previously it is probably a sincedb problem, so you may want to reset that.

(system) #3

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