I'm starting to explore logstash and this is probably a newbie question, but as far as I have studied this should be working and it isn't.
I have a very simple configuration that just reads log files and dump them to the stdout. It works for a single file and for a list (array) of files, but if I use a glob that matches the same files, nothing happens.
I've tested the glob with a short ruby script and it lists the correct files.
Here is my configuration:
input {
file {
path => "/home/lpacheco/*.log"
start_position => "beginning"
}
}
output {
stdout {}
}
If I run this with --verbose
I get:
{:timestamp=>"2015-09-23T11:26:47.008000-0300", :message=>"Registering file input", :path=>["/home/lpacheco/*.log"], :level=>:info}
{:timestamp=>"2015-09-23T11:26:47.068000-0300", :message=>"No sincedb_path set, generating one based on the file path", :sincedb_path=>"/home/.sincedb_6da9e0c63851aa9d5840ba19efd196cb", :path=>["/home/lpacheco/*.log"], :level=>:info}
{:timestamp=>"2015-09-23T11:26:47.089000-0300", :message=>"Pipeline started", :level=>:info}
Nothing else happens.
I'm using:
- logstash 1.5.4
- OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)
- ruby 1.9.3p484 (2013-11-22 revision 43786) [i686-linux]