coreyfinley: can you hit the host with a browser on port 9200 and use that username/pw?
nemothekid joined the channel
coreyfinley
yes
Before going down the route of elasticsearch_http, i tried just using the elasticsearch output but got transport errors
input redis to output stdout works find so the input isn't problematic
dm3 has quit
dm3 joined the channel
pack
maybe the codec is part of the issue. I've never put auth on my es cluster. i use the elasticsearch output with protocol => http, but i don't think that does auth at all.
hugespoon joined the channel
coreyfinley
I tried without the codec as well :/
and that's correct, the protocol => http doesn't support auth
Mso150 joined the channel
seegras_ has left the channel
dm3 has quit
TomasNunez1 joined the channel
pack
looks like there's an ipwhitelist on the es side, and a way tot turn on http.basic.log, maybe double check those and see what error is tossed?
whoops, the ipwhitelist is to turn off auth for a single ip...nm that, ignore me.
TomasNunez has quit
kersh has quit
kersh joined the channel
kersh has quit
kersh_ joined the channel
seprob joined the channel
walterheck joined the channel
nemothekid has quit
pu22l3r joined the channel
gentunian has quit
yahiaelgamal joined the channel
yahiaelgamal
#logstash
I have a small question. I am trying to make a tiny output to mysql
So I chose mysql2 gem
User_ is now known as lev400
whenever I try to require in bin/logsatsh rib i get the following error
LoadError: no such file to load -- mysql2 from org/jruby/RubyKernel.java:1085:in `require' from file:/usr/local/Cellar/logstash/1.4.2/libexec/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require' from (irb):1:in `evaluate' from org/jruby/RubyKernel.java:1121:in `eval' from org/jruby/RubyKernel.java:1521:in `loop' from org/jruby/RubyKernel.java:1284:
sorry LoadError: no such file to load -- mysql2 from org/jruby/RubyKernel.java:1085:in `require' from file:/usr/local/Cellar/logstash/1.4.2/libexec/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require' from (irb):1:in `evaluate' from org/jruby/RubyKernel.java:1121:in `eval' from org/jruby/RubyKernel.java:1521:in `loop' from org/jruby/RubyKernel.java
LoadError: no such file to load -- mysql2
from org/jruby/RubyKernel.java:1085:in `require'
(sorry my first IRC experience ever)
warkolm
please don't paste text like that in here, use a service like gist/pastebin/etc as it makes it easier to read and help
is there a limitation on the gems we can use for making outputs?
kersh_ has quit
pack
yahiaelgamal: wtf are you trying to do? use mysql as an output? you can't. i mean, maybe you could do some command line foo with exec, but there's no mysql output (that i know of): http://blog.fernandobattistella.com.br/2014/10/...
I read the blog post, but if the problem is in the jdbc, why not use another connector
jeffr76 has quit
gentunian joined the channel
gondoi is now known as zz_gondoi
kersh joined the channel
pack
yahiaelgamal: are you installing everything with ports on a mac?
Mso150 has quit
pu22l3r joined the channel
Mso150 joined the channel
yahiaelgamal
pack: I installed logstash via homebrew on mac
pack: and using rbenv. nothing special
kersh has quit
intransi_ joined the channel
pack
yeah, i wonder what that does for gem pathing, and if it uses the system paths or if you have to toss it in the vendor bundles (/opt/logstash/vendor/bundle/jruby/1.9/gems/ on cent6 boxes using the rpm)
(sorry, i don't think i'm being helpful)
intransit has quit
virusuy has quit
yahiaelgamal
pack: I checked in jruby/gems directly on my machine, the mysql2 gem isn't there. I will try to add it there (not sure how to maintain this though)
patbos has quit
nogic_ joined the channel
wrath0r has quit
GregMefford has quit
ggoZ joined the channel
msheiny has quit
nemothekid joined the channel
coreyfinley has quit
I tried and it didn't work either. same error
pack: Thanks man appreciate it
yahiaelgamal has quit
cookiedavis joined the channel
koendc joined the channel
cakirke joined the channel
koendc has quit
jherbst has quit
rtoren joined the channel
Mso150 has quit
neoice
is there any way to run multiple input threads?
zarry has quit
warkolm
for what input
rtoren has quit
you can have multiple LS worker threads, and some outputs support the same, not sure on inputs though
"This is the same as declaring the input multiple times" awesome <3
achan1 joined the channel
pack
I wonder what it does with file globs
like for the input type file...one per file...one per statement...
kersh joined the channel
pheaver has quit
kersh has quit
koendc joined the channel
alkaland has quit
jabroney has quit
dblessing has quit
eper joined the channel
koendc has quit
foulou joined the channel
lukasg joined the channel
lukasg
Is there a reason that grok patterns don't usually convert the fields they extract to their natural type? E.g. the pattern for HAProxy log's 'backend_queue' field is %{INT:backend_queue} instead of %{INT:backend_queue:int}
Which means I can't simply do term_stats on those fields without converting them myself first
owen1
martbhell: thanks!
lukasg
Performance would be my obvious guess, resp. a "only convert what you need" philosophy. But would that really even matter in terms of performance compared to everything else logstash does during the filter phase?
patbos has quit
hugespoon has quit
Also: How should I go about converting these fields? Add a bunch of mutate { convert => {}} filters? Fiddle with the ES mapping? Or are there other options?
icebourg has quit
icebourg joined the channel
rtoren has quit
deruke
how would one parse a timestamp that looks like [02/Nov/2014:06:26:55 -0500]
I am having trouble with the [ and ] characters apparently
ok cool - it was failing on the debugger which means the problem is likely behind the keyboard
rtoren joined the channel
lukasg
Can't you just write your grok pattern so that it extracts the date from within the [ ] to a 'timestamp' field the same way the COMMONAPACHELOG pattern does it?
So, the HTTPDATE pattern does not include the [ ] themselves, that's handled in the COMMONAPACHELOG
koendc joined the channel
So for example, use \[%{HTTPDATE:timestamp}\] as pattern and [02/Nov/2014:06:26:55 -0500] for the input on http://grokdebug.herokuapp.com/