Getting Data In

How can I parse bacticks/grave accents (`) in syslog?

New Member


I have a log that separate using Grave Accent


How can I parse this log?

add ` in segmenters.conf ?

or regex?

Tags (2)
0 Karma

Esteemed Legend

There is no reason to change segmenters.conf because it should already be segmenting along your data elements because the graves will create segment breaks (being that they are punctuation marks). You should be able to use any of the RegEx-based options for field extractions with no problems. For example, you can use rex like this:

... | rex field=raw "(?<field1>[^`]+)`(?<field2>[^`]+)`(?<field3>[^`]+)`(?<field5>[^`]+)`"
0 Karma

New Member

what i would do is to format the log before forwarding to splunk. even you can successfully submit it , you will face trouble when querying.

0 Karma
*NEW* Splunk Love Promo!
Snag a $25 Visa Gift Card for Giving Your Review!

It's another Splunk Love Special! For a limited time, you can review one of our select Splunk products through Gartner Peer Insights and receive a $25 Visa gift card!


Or Learn More in Our Blog >>