Dear Joi, It's worked now. You make me feeling something. Thanks for your help. Do you have any document any using grok pattern on Graylogs?
On Friday, November 20, 2015 at 3:55:36 PM UTC+7, Joi Owen wrote: > > Just list the comma outside the parens, as in: > > ^.+ source: (.+),\sdest.+$ > > I might play around with using a character set instead of (.+), but I > don't remember the syntax. In perl it would be > > ^.+ source: ([\d\.]+),\sdest.+$ > > The [\d\.] would match on any mix of digits and periods, which would match > a standard IPv4 Ip address in that spot of the log message. > > Again, I don't know what the syntax is for the java flavor or if graylog > even supports sets with []. > > > On Fri, Nov 20, 2015 at 12:40 AM, Dương Quang Thọ <[email protected] > <javascript:>> wrote: > >> Dear anyone, >> I hava a sample log as below with IP add as format: x.x.x.x. How can I >> extractor IP source add. I try using regular expression extractor: source: >> {.+?}\s\w but I get <IP source add>, I dont want get character , Please >> help me. Thanks >> RT_IDS: RT_SCREEN_IP: IP spoofing! source: <IP source add>, destination: >> <IP dest add>, protocol-id: 6, zone name: trust, interface name: >> ge-0/0/1.0, action: drop >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Graylog Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/graylog2/6958178e-01ec-4bba-874d-2083a8006eeb%40googlegroups.com >> >> <https://groups.google.com/d/msgid/graylog2/6958178e-01ec-4bba-874d-2083a8006eeb%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > No matter what we think of Linux versus FreeBSD, etc., the one thing I > really like about Linux is that it has Microsoft worried. Anything > that kicks a monopoly in the pants has got to be good for something. > - Chris Johnson > > -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/832a7a34-0ada-4291-ae45-155599b34804%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
