Joseph DJOMEDA
2015-01-03 14:17:10 UTC
Hello All,
I am having a issue with search accuracy because, I suspect of the way we
log see below an example:
*03 Jan 2015 ;13:51:40.767
[myActorSystem-akka.actor.default-dispatcher-3859] INFO
c.d.m.c.m.l.MessageListenerImpl -
[MsgReceived][email:***@clientemail.com][account:700774779919551][batchId:1420209848423][msgId:1420209848425][recipient:xxxxxxxxxxxx]*
The block : "
* [MsgReceived][email:***@clientemail.com][account:700774779919551][batchId:1420209848423][msgId:1420209848425]*"
is inconsistent and might have more or less "[ ]" block based on the type
of request is been logges. That has posed a little issue for me writing a
grok filter so I had to treat all as loginfo to be sure nothing is left out.
Below is the grok filter I am using currently :
* if [type] == "my-app" {*
* grok {*
* match => { "message" => "%{MONTHDAY:day} %{MONTH:month}
%{YEAR:year} ;%{HOUR:hour}:%{MINUTE:minute}:%{SECOND:second}
\[%{GREEDYDATA:thread}\] %{LOGLEVEL:loglevel} %{GREEDYDATA:classinfo}
-%{GREEDYDATA:loginfo}" }*
* }*
* }*
The purpose of this post is to have some kind of guidelines to I can advise
our developers how to log: I was thinking whether splitting the above entry
to the following one would work.
*date: "03 Jan 2015 ;13:51:40.767" thread:
myActorSystem-akka.actor.default-dispatcher-3859 loglevel: INFO logger:
c.d.m.c.m.l.MessageListenerImpl requesttype: MsgReceived accountemail:
***@clietnemail.com accountid: 700774779919551 batchId:1420209848423
msgId:1420209848425 recipient: xxxxxxxxx*
So I am aware of some gelf appenders for logback but it looks to me that
they are directly logging into graylog. What I would like to have is
leveraging on my centralized log management system having
logstash-forwarder use the selfsigned SSL to the central logstash. So is
there a way to log into file in a way that is gelf compatible?
Best Regards,
I am having a issue with search accuracy because, I suspect of the way we
log see below an example:
*03 Jan 2015 ;13:51:40.767
[myActorSystem-akka.actor.default-dispatcher-3859] INFO
c.d.m.c.m.l.MessageListenerImpl -
[MsgReceived][email:***@clientemail.com][account:700774779919551][batchId:1420209848423][msgId:1420209848425][recipient:xxxxxxxxxxxx]*
The block : "
* [MsgReceived][email:***@clientemail.com][account:700774779919551][batchId:1420209848423][msgId:1420209848425]*"
is inconsistent and might have more or less "[ ]" block based on the type
of request is been logges. That has posed a little issue for me writing a
grok filter so I had to treat all as loginfo to be sure nothing is left out.
Below is the grok filter I am using currently :
* if [type] == "my-app" {*
* grok {*
* match => { "message" => "%{MONTHDAY:day} %{MONTH:month}
%{YEAR:year} ;%{HOUR:hour}:%{MINUTE:minute}:%{SECOND:second}
\[%{GREEDYDATA:thread}\] %{LOGLEVEL:loglevel} %{GREEDYDATA:classinfo}
-%{GREEDYDATA:loginfo}" }*
* }*
* }*
The purpose of this post is to have some kind of guidelines to I can advise
our developers how to log: I was thinking whether splitting the above entry
to the following one would work.
*date: "03 Jan 2015 ;13:51:40.767" thread:
myActorSystem-akka.actor.default-dispatcher-3859 loglevel: INFO logger:
c.d.m.c.m.l.MessageListenerImpl requesttype: MsgReceived accountemail:
***@clietnemail.com accountid: 700774779919551 batchId:1420209848423
msgId:1420209848425 recipient: xxxxxxxxx*
So I am aware of some gelf appenders for logback but it looks to me that
they are directly logging into graylog. What I would like to have is
leveraging on my centralized log management system having
logstash-forwarder use the selfsigned SSL to the central logstash. So is
there a way to log into file in a way that is gelf compatible?
Best Regards,
--
You received this message because you are subscribed to the Google Groups "graylog2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "graylog2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.