Hi. What's the recommended way of sending auditd logs to logstash given that they are binary?
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
Mounica has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
turfrex has quit
javelin9999 has quit
thansen joined the channel
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
spgingras joined the channel
javelin9999 joined the channel
javelin9999 has quit
spgingras has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
javelin9999 joined the channel
javelin9999 has quit
Itkovian has quit
javelin9999 joined the channel
Mounica joined the channel
brotatochip has quit
turfrex joined the channel
flargnarf has quit
Gen has quit
Nemus joined the channel
rubytor has quit
brotatochip joined the channel
javelin9999 has left the channel
flargnarf joined the channel
cliles has quit
pawnbox has quit
ircuser-1 has quit
chasmo77 has quit
higbass has quit
Ahuge joined the channel
thansen has quit
Ahuge
Is there a way to take an elasticsearch index and enrich it's documents with data from a second index and output it to a third index? I was assuming the elasticsearch logstash filter plugin would do that but it seems to query against previous events.
einyx_ has quit
rastro
Ahuge: logstash has an elasticsearch{} input that will read existing documents. Depending on what you're doing, the translate{} filter might also be of interest.
ladan91 joined the channel
sosedoff joined the channel
ladan91
what mechanism does logstash use for it's own logging? does it use log4j?
GaneshRaju has quit
torrancew
no
it uses a rubygem whack wrote called "cabin"
Ahuge
rasto I'm using that to populate my event with the original document but now I need to query data from a seperate index based on a field in my original document. In this case it is a custom id.
rastro
Ahuge: if you're in the middle of processing a document, then you can use the elasticsearch filter to add data it to from a previously-indexed document.
ef_ has quit
Ahuge
rastro: Wait so is the elasticsearch filter pulling from previously queried documents in memory? Or is it doing an ES query like the input plugin is?
rastro
Ahuge: both query from ES.
Ahuge: LS is not caching your documents in RAM.
Ahuge
rastro: k good haha
torrancew
certainly not in any format that would support ES queries!
ladan91
torrancew: thanks, and where can I find it's own logs?I mean where it write it's own logs and where I should set the path that I wanted it to write it's own logs?
Ahuge: i haven't done that type of stuff, but the concept looks ok.
NoodlesNZ has quit
torrancew
ladan91: by default, stdout, but the init script (and its associated config files) typically override that
Ahuge
rastro: hmmm alright thanks for your help. Ill keep tooling around and see if I can figure it out
ladan91
torrancew: thanks a lot
colinsurprenant joined the channel
rastro
Ahuge: is some part of it not working? that's not what you asked...
ef_ joined the channel
Ahuge
rastro: oh sorry my mistake, yeah I am getting "Failed to query elasticsearch for previous event" with the error :error=>#<NoMethodError: undefined method `[]' for nil:NilClass>, :level=>:warn}
sosedoff
can someone point me to the right direction? im testing out collecd plugin - https://www.elastic.co/guide/en/logstash/curren... - i can see that data is coming into logstash, but its not output into elasticsearch
Ahuge: i would see if the input{} is working as you expect. Try removing the filter{} section and the elasticsearhc{} output and see if you good stuff on stdout.
fatdragon has quit
Ahuge
rastro: alright will do thanks
NoodlesNZ joined the channel
willa has quit
FOCer has quit
ladan91
is there any way that I can send logstash logs itself to logstash?or send them to rsyslog?
Mounica has quit
rastro
ladan91: i run a shipper on my ELK machines to send their logs to another server that runs a small but complete stack.
r04r is now known as zz_r04r
viq has quit
torrancew
sending to its own stack is almost /definitely/ a bad idea
GaneshRaju joined the channel
kepper joined the channel
rastro
s/almost//
torrancew
:) thank you
rastro
lol
torrancew
it's a really fantastic way to piss yourself off, though
I say, having done it once before, but with LSF, not LS
rastro
"hey, i'll just check the, um... crap!"
torrancew
yup
Also, LSF starts logging failures like crazy
which, if your problem was capacity, just makes it all worse
:)
Mounica joined the channel
andrew[andrboot]
hmm.
rastro: are you alive? :)
trying to move my elasticsearch off my logstash box, but logstash instance has deided it doesn't want to talk to elasticsearch, specificying a host with the ip in host => ["x.x.x.x] formatany ideas?
torrancew
andrew[andrboot]: rastro could be a computer, in which case the answer was /never/ "yes" :)