Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2015 22:12:24 +0100
From:      Filias Heidt <post@filias.name>
To:        freebsd-ports@freebsd.org
Subject:   sysutils/logstash leaves me without working file input
Message-ID:  <D341B5D9-A69C-4A24-B520-534D53B68179@filias.name>

next in thread | raw e-mail | index | archive | help

--Apple-Mail=_47B7F20F-2F7B-4331-84EC-B20D1CD4AE51
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi Ports,

I installed the latest sysutils/logstash port in a fresh 10.1 jail and =
tried the following:

# /usr/local/logstash/bin/logstash -f /home/user/src/conf/logstash.conf

which gave the following output:

Using milestone 2 input plugin 'file'. This plugin should be stable, but =
if you see strange behavior, please let us know! For more information on =
plugin milestones, see http://logstash.net/docs/1.4.2/plugin-milestones =
{:level=3D>:warn}
NotImplementedError: stat.st_dev unsupported or native support failed to =
load
       dev_major at org/jruby/RubyFileStat.java:190
  _discover_file at =
/usr/local/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filew=
atch/watch.rb:140
            each at org/jruby/RubyArray.java:1613
  _discover_file at =
/usr/local/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filew=
atch/watch.rb:122
           watch at =
/usr/local/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filew=
atch/watch.rb:34
            tail at =
/usr/local/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.5.1/lib/filew=
atch/tail.rb:58
             run at /usr/local/logstash/lib/logstash/inputs/file.rb:130
            each at org/jruby/RubyArray.java:1613
             run at /usr/local/logstash/lib/logstash/inputs/file.rb:130
     inputworker at /usr/local/logstash/lib/logstash/pipeline.rb:163
     start_input at /usr/local/logstash/lib/logstash/pipeline.rb:157

So it seems, that the file {} input is not working, which seems to be =
related to this Bug: https://logstash.jira.com/browse/LOGSTASH-1819.
However, unlike mentioned in the Bugreport, the Port is not working for =
me.

In case its of interest, the logstash.conf looks like the following:

input {
  file {
    path =3D> "/tmp/test.log"
    start_position =3D> beginning
  }
}

filter {
  grok {
    match =3D> { "message" =3D> "%{COMBINEDAPACHELOG}" }
  }
  date {
    match =3D> [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
  }
}

output {
  elasticsearch {
    host =3D> localhost
  }
  stdout { codec =3D> rubydebug }
}

Am I missing something? Is something wrong with the port? In case, there =
is: Is there something I can help with to get that resolved?

Thanks,
Filias

--Apple-Mail=_47B7F20F-2F7B-4331-84EC-B20D1CD4AE51
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJUtYo4AAoJEGvCWp6gb8LRNloIALR8Pa25oFBDPEz4lPX5mVP0
Ieb9Aew9/AuWDqhSKSqslSH51w+JjDCTkCyKFOgbT2qlBE1BMKl/8pki1aTi0bWV
atyNZt46AVhNAZKNGSFKyFL7HrwGB/IC/5Eb5s/sZWi0q4vrZjJ2uv4X9CjFArbw
duDBD5l40RLQoI0P2PoVTVz0i7TrngETX1dtVbLxKHkAYU7vPCBwS9U/Jr0/o1NZ
L0DoVb542hSXr0l8NC4mimuiRpjPB568qFJyMU8C7aHtCZE7ltJ6WK4UBzKhubEW
ja4RVJwiclQLt5rtL5c8Lc6DUWXJJuSymvGSwDGGIiwG6bYKA193pS9J1j6xOp8=
=3WjV
-----END PGP SIGNATURE-----

--Apple-Mail=_47B7F20F-2F7B-4331-84EC-B20D1CD4AE51--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D341B5D9-A69C-4A24-B520-534D53B68179>