My colleague and I have both installed ELK using Bitnami and are both having issues getting Logstash to be able to successfully read an input file - we're hoping someone here may be able to spot an issue with our setup.
We're using Windows 10 and Logstash 6.5.4.
We're trying to have Logstash read in some simple input files. In my case, it's just a one-line text file containing a string. However, we cannot get Logstash to process the file and write any output to either stdout or a file.
The logstash.conf config file is:
input
{
file{
path => "C:/Bitnami/elk-6.5.4-0/logstash/InputFiles/test_input.txt"
sincedb_path => "NUL"
start_position => "beginning"
}
}
filter
{
}
output
{
file{
path => "C:/Bitnami/elk-6.5.4-0/logstash/testing_logstash_output.txt"
}
}
I'm launching Logstash from within PowerShell as an administrator using the following command within the logstash directory:
.\bin\logstash -r -f conf\logstash.conf
That results in the following output to the console:
Sending Logstash logs to C:/Bitnami/elk-6.5.4-0/logstash/logs which is now configured via log4j2.properties
[2019-01-17T22:41:51,426][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-01-17T22:41:51,454][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.5.4"}
[2019-01-17T22:41:54,540][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>2, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50}
[2019-01-17T22:41:55,139][INFO ][logstash.pipeline ] Pipeline started successfully {:pipeline_id=>"main", :thread=>"#<Thread:0x245b955a sleep>"}
[2019-01-17T22:41:55,201][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>}
[2019-01-17T22:41:55,211][INFO ][filewatch.observingtail ] START, creating Discoverer, Watch with file and sincedb collections
[2019-01-17T22:41:55,656][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
From that point, nothing happens. That is, my output file is not generated. When I try to right to stdout, nothing happens there either.
I'll note that I've also run it with the --debug flag. The log indicates no errors. The only odd entry when using the --debug flag is:
[DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directories not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu
If anyone has any suggestions as to why we cannot get our test input to be processed, we are all ears. Thanks in advance for your assistance!