i want to create a seperate index by the response code : 200 ..when parsing into ES
how do i do that
hello guys
bjorn_
Check the response code and configure a separate index in your output {} config.
I don't see why you need a separate index. You can filter on the response code when querying the index.
Guest41079
can you please specify a sample of how to config in output .
Chris_ joined the channel
Chris_
good morning
bjorn_
output { if [your response code] == "200" { elasticsearch { index => "name your index here" } } }
Obviously you must adapt this to your own environment.
Guest41079
ok ..thanks :) @bjorn_
Chris_
i'am trying to create a new input plugin for logstash. since ruby is quite new to me, i'd really like to debug the provided tests in your pluginbs to get a feeling of how things work. Is there some guidance for doing so? I tried setting everything up in eclipse but the debugger always fails on me
i have set up an rspec task to run the tests. When i do, i end up with an error saying: "SyntaxError: /tmp/dltk58619.tmp/debugger/AbstractRunner.rb:94: syntax error, unexpected tLABEL when nil: NullLogManager.new"
Diddi joined the channel
i do not really need to stick to eclipse, i just need something that allows me to step trough the existing plugins to understand them better
Sandcrab joined the channel
Diddi has quit
matejz joined the channel
Diddi joined the channel
saintpablo has quit
saintpablo joined the channel
koendc joined the channel
Guest41079
hello guys ...for evry entry of a log i need to create two indexes for the log ..how do we implement this in logstash??
saintpablos joined the channel
saintpablo has quit
bjorn_
Guest41079: I already answered you.
pawnbox has quit
tgautier has quit
alexandrul_temp joined the channel
mosulica joined the channel
Hanynowsky joined the channel
pawnbox joined the channel
horus joined the channel
Itkovian joined the channel
yardenbar joined the channel
casimirextreme joined the channel
fev3r101 joined the channel
casimirextreme has quit
fev3r101 has quit
pawnbox has quit
pawnbox joined the channel
pawnbox has quit
pawnbox joined the channel
pawnbox has quit
w1xz joined the channel
N-Mi__ joined the channel
wrath0r joined the channel
ShaRose joined the channel
pawnbox joined the channel
wrath0r has quit
pawnbox has quit
Guest41079 has quit
barto_95 joined the channel
finalbeta joined the channel
vali
hi guys
anyone using the json filter to "import" some data into logstash?
if yes, how to you access the fields ?
I tried [field] but it doesn't seem to work
pawnbox joined the channel
pawnbox has quit
Evesy joined the channel
rileyy joined the channel
pawnbox joined the channel
sysmonk
if you're not using target => then [field] should conain the value
where 'field' is the name of field as named in json
pandaadb joined the channel
vali
not using target...
output {
if ![key]{
just doing simple like this
sysmonk
vali: just print out all the fields and see how they look
vali
to see if the fields exist
did it, they are there as expected
not sure it's not picking on the key field..
pawnbox has quit
fixed it ...
my since_db was already at latest point...
and I didn't specify the pos
noob mistake
pawnbox joined the channel
pawnbox has quit
khushildep joined the channel
rileyy
Hey, anyone know if there are any plans to allow Monitoring API data from Logstash 5.x over to a Marvel/Monitoring cluster?
dopey
Does anyone do rsyslog -> RMQ -> LS ?
I'm doing rsyslog -> LS -> RMQ -> LS now, wondering if i can drop the first Ls