Cannot find libgrok

Description

Installed grok on Ubuntu 10.04 64-bit machine

Then downloaded and ran logstash monolithic using the config file found here: https://github.com/logstash/logstash/blob/master/etc/agent.conf.example

Logstash failed to run with the error trace in trace.txt

I tried this via the .deb file linked on the logstash site and by compiling from source.

jjones@jjones-desktop:/usr/lib64$ grok --version
grok 1.20110630.1

jjones@jjones-desktop:/usr/lib64$ ldd /usr/lib64/libgrok.so
linux-vdso.so.1 => (0x00007fff12941000)
libdl.so.2 => /lib/libdl.so.2 (0x00007ff6d5ed1000)
libpcre.so.3 => /lib/libpcre.so.3 (0x00007ff6d5ca3000)
libevent-1.4.so.2 => /usr/lib/libevent-1.4.so.2 (0x00007ff6d5a88000)
libtokyocabinet.so.8 => /usr/lib/libtokyocabinet.so.8 (0x00007ff6d580b000)
libc.so.6 => /lib/libc.so.6 (0x00007ff6d5488000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff6d630b000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00007ff6d526d000)
librt.so.1 => /lib/librt.so.1 (0x00007ff6d5065000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00007ff6d4e4c000)
libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x00007ff6d4c3a000)
libz.so.1 => /lib/libz.so.1 (0x00007ff6d4a23000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff6d4806000)
libm.so.6 => /lib/libm.so.6 (0x00007ff6d4582000)

Attachments

1
  • 22 Dec 2011, 09:06 AM

Gliffy Diagrams

Activity

Show:

Jordan Sissel January 31, 2012 at 7:22 PM

Logstash 1.1.0 is out and no longer requires libgrok

Former user January 1, 2012 at 3:25 AM

Are you running a 32-bit or 64-bit JVM? If you have a 32-bit JVM, you'll need a 32-bit libgrok.so too.

Jordan Sissel December 22, 2011 at 9:13 AM

Logstash 1.1.0 (currently in beta) uses grok implemented in ruby and will not have this problem. You are welcome to use it as 1.1.0beta7 is well supported and used by many folks right now:

Docs: http://logstash.net/docs/1.1.0beta7/
Download: http://semicomplete.com/files/logstash/logstash-1.1.0beta7-monolithic.jar

If you'd prefer staying with logstash 1.0.17, that's OK too. For a quick check, can you try doing 'ldconfig' as root and rerunning. If it still errors, can you run logstash with 'strace -fe trace=file -o /tmp/strace.out' and grep for 'libgrok' in /tmp/strace.out and put the results here?

Fixed

Details

Assignee

Reporter

Labels

Fix versions

Affects versions

Created December 22, 2011 at 9:06 AM
Updated April 19, 2013 at 8:19 PM
Resolved January 31, 2012 at 7:22 PM