8:51 AM
untergeek
thanks!
8:55 AM
dm3 joined the channel
8:57 AM
nene
can i use host parameter in output pulgin to send the logs to more than one server??
8:58 AM
neo_ has quit
8:59 AM
neo_ joined the channel
8:59 AM
rubytor joined the channel
9:03 AM
untergeek
nene: which output plugin?
9:04 AM
yardenbar joined the channel
9:04 AM
nene
logstash output plugin
9:04 AM
untergeek: ^^
9:04 AM
TomasNunez has quit
9:04 AM
untergeek
nene: there is no logstash output plugin. Did you mean the elasticsearch output plugin?
9:05 AM
nene
yes elasticearch output plugin
9:05 AM
untergeek
no, you cannot send to multiple hosts that way
9:06 AM
however, you can send to multiple hosts by declaring another elasticsearch output in the output block
9:06 AM
nene
ok
9:07 AM
derjohn_mob joined the channel
9:08 AM
neo_ has quit
9:09 AM
neo_ joined the channel
9:12 AM
thoco has quit
9:12 AM
untergeek: i am getting below error
9:12 AM
java.io.StreamCorruptedException: invalid internal transport message format
9:13 AM
untergeek
paste your configuration into a gist or something, please, and link here
9:14 AM
it seems that something that should be connecting isn't, but I can't tell from this one line
9:14 AM
I'll be back in about 15 minutes
9:14 AM
rubytor
try to change the name of tour cluster!!
9:14 AM
untergeek
so please wait until I'm here again
9:14 AM
rubytor
of your!!!
9:15 AM
untergeek
indeed, don't use protocol => node, use protocol => http (prevents the need to use cluster name)
9:15 AM
that will be the default in Logstash 2.0 anyway
9:15 AM
bbl
9:16 AM
nene
rubytor: i am using diff cluster names for each host
9:18 AM
losh_ is now known as losh
9:23 AM
rtoren has left the channel
9:23 AM
rtoren joined the channel
9:24 AM
rtoren has quit
9:24 AM
rsamuel has quit
9:26 AM
tiv joined the channel
9:27 AM
tiv
hello, guys
9:27 AM
want to ask, is somebody using latest logstash in production (is it stable?)?
9:28 AM
trying to move on it earlier, but have few issues with it
9:28 AM
I'm talking about 1.5 branch
9:29 AM
thoco joined the channel
9:29 AM
Schwarzbaer_ joined the channel
9:31 AM
eroomydna has quit
9:32 AM
violet-rpi
i have amessage i filter with grok but want to replace/rename the %{URIHOST} to logsource field , any way to do this ?
9:32 AM
neo_ has quit
9:32 AM
rename => [ "URIHOST", "logsource" ] in mutate not seems to do the trick
9:36 AM
untergeek
I'm back
9:37 AM
tiv: I use 1.5.4
9:37 AM
I have no problems with it
9:37 AM
tiv: sometimes issues are with plugins, rather than the core Logstash release
9:37 AM
tiv: if you have problems, let us know, we would like to help address them
9:38 AM
neo_ joined the channel
9:39 AM
tiv
untergeek, thank you. will try to move on today
9:40 AM
gzanden joined the channel
9:41 AM
violet-rpi, you can try to add field with name you want, then remove old field
9:41 AM
violet-rpi, also, you can just modify|write your own grok pattern for that
9:41 AM
violet-rpi
but i need the contet of the old field in the new field
9:42 AM
content*
9:42 AM
i'm trying to parse nginx error logs , but it is kind of hard, i'm kinsd of new to this
9:43 AM
tiv
violet-rpi, try to add separated mutate {...} script
9:44 AM
violet-rpi, do you use one config file?
9:44 AM
untergeek
violet-rpi: %{URIHOST} in grok would identify the data, but not store it in a field. %{URIHOST:field_name} would store the URIHOST value in field_name
9:44 AM
violet-rpi
9:44 AM
logstashbot
9:45 AM
violet-rpi
uber: thanks i'll try that
9:45 AM
untergeek
violet-rpi: looking at your config, the only fields you're keeping are pid and message.out
9:45 AM
tiv
violet-rpi, can you give output of this?
9:45 AM
violet-rpi, if you have it
9:46 AM
violet-rpi
9:46 AM
logstashbot
9:47 AM
untergeek
violet-rpi: see, there is no URIHOST field. You should assign these to fields to use them
9:48 AM
tiv
violet-rpi, %{URIHOST:logsource}"
9:48 AM
violet-rpi
well without the rename => [ "%{URIHOST}", "%{logsource}" ] it shows the urihost
9:49 AM
instilled has quit
9:49 AM
untergeek
%{URIHOST:logsource} seems a reasonable way to put it there
9:49 AM
tiv
violet-rpi, %{<PATTERN>:<field_name>}
9:50 AM
violet-rpi
so like this rename => [ "%{URIHOST:logsource}", "%{logsource}" ] ?
9:50 AM
instilled joined the channel
9:50 AM
untergeek
violet-rpi: no, in your grok rule
9:50 AM
match => [ "message", "%{SYSLOG5424PRI}%{CISCOTIMESTAMP} %{URIHOST:logsource}
9:51 AM
you shouldn't need the mutate rename after that
9:51 AM
violet-rpi
right like i did with pid thanks
9:51 AM
neo_ has quit
9:52 AM
tiv
9:52 AM
logstashbot
9:53 AM
tiv
violet-rpi, *source :)
9:54 AM
violet-rpi
tiv: thanks
9:55 AM
qinbo has quit
9:57 AM
tiv
violet-rpi, urw
10:05 AM
losh has quit
10:08 AM
jmeeuwen__ has quit
10:08 AM
martinseener joined the channel
10:09 AM
martinseener
hi! can anyone give me a hint how i can replace a “grep” filter for new logstash version?
10:09 AM
tiv
martinseener, tell us more
10:10 AM
what actually do you want?
10:11 AM
martinseener
iam using a grep filter to match messages containing special severities and program names to add fields and tags. those tags are later used to send the output not just to ES but to nagios
10:12 AM
but grep is not available anymore with LS 1.5.3 which i am about to upgrade from 1.3.1
10:12 AM
tiv
10:12 AM
logstashbot
10:13 AM
martinseener
tiv: ahh thanks alot! yeah i was looking for this ;)
10:13 AM
so basically replace grep with conditional and mutate ;) thanks!
10:13 AM
thoco has quit
10:14 AM
tiv
martinseener, you can try ;)
10:14 AM
Mattch has quit
10:14 AM
martinseener
i got about 30 of those, so ill start with just one and comment out the others…i think ill get it working ;)
10:14 AM
martinseener has quit
10:17 AM
palecur joined the channel
10:17 AM
palecur has left the channel
10:20 AM
Schwarzbaer_ has quit
10:20 AM
Schwarzbaer_ joined the channel
10:38 AM
palecur joined the channel
10:39 AM
palecur has quit
10:43 AM
tiv
just wondering that logstash book is still receiving updates, like logstash itself
10:44 AM
it would be interesting to see diff :)
10:45 AM
rubytor
Im using xml filter and XPATH inside.... /xxxx/yyyy/wwww/text() mmmm So of course all my output data is STRING..... Can I cast them to number, date
10:46 AM
daito has quit
10:46 AM
because when I try to use them on kibana...it say that I dont have any NUMBER field
10:47 AM
tiv
rubytor, why not use mutate filter to change data type?
10:47 AM
rubytor
tiv: let me read it!!
10:48 AM
tiv
10:48 AM
logstashbot
10:49 AM
olivier_2
anyone know why some of my logs are tagged with _grokparsefailure even though every field has been parsed perfectly?
10:49 AM
tiv
10:49 AM
logstashbot
10:50 AM
tiv
olivier_2, this is because some of grok patterns include another grok patterns
10:50 AM
olivier_2, that give you grokparsefailure
10:50 AM
rubytor
tiv: thank you... I'll check!!
10:50 AM
neo_ joined the channel
10:51 AM
SkyRocknRoll joined the channel
10:51 AM
tiv
olivier_2, especially syslogbase, if I'm right (can't remember now, have the same issue in the past)
10:51 AM
olivier_2
you are probably right tiv
10:51 AM
thank you
10:51 AM
tiv
olivier_2, I'm remember! what input filter do you use?
10:52 AM
if something not tcp or udp (syslog, for example)
10:52 AM
this filters include grok filters inside, that give you fault
10:52 AM
meena
i made a huge mistake.
10:53 AM
tiv
just use tcp or udp for syslog inputs
10:53 AM
meena
i mean, hello o/~
10:53 AM
olivier_2
tiv: this is what i have atm
10:53 AM
10:53 AM
meena
are there any standard patterns for logback, postfix, dovecot logs?
10:53 AM
logstashbot
10:54 AM
tiv
olivier_2, syslog input give you grokparsefailure
10:55 AM
neo_ has quit
10:55 AM
olivier_2, because actually this is the mix of few simple filters
10:56 AM
olivier_2, i'm using raw tcp or udp for all syslogs, for this reason (your issue) :)
10:56 AM
meena, there is not
10:57 AM
olivier_2
right. then it will apply the default crappy SYSLOGBASE grok pattern