<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I parse bacticks/grave accents (`) in syslog? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-bacticks-grave-accents-in-syslog/m-p/124145#M25603</link>
    <description>&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2015 17:20:12 GMT</pubDate>
    <dc:creator>tonykung</dc:creator>
    <dc:date>2015-04-01T17:20:12Z</dc:date>
    <item>
      <title>How can I parse bacticks/grave accents (`) in syslog?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-bacticks-grave-accents-in-syslog/m-p/124144#M25602</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a log that separate using Grave Accent &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;3`0`1`1`1dk3ad`1020`20140301`10:53:37`1`17`140219185904`172.3.196.184`58493`204.126.63.2`53`eth5`eth6`````````````\xB3\xBB\xBA\xCE`\xBFܺ\xCE`44`N/A`4````
3`0`1`1`1dk3ad`1020`20140301`10:45:53`1`17`140124184856`192.11.2.125`65226`204.124.101.2`53`eth0`eth1`SNAT`172.3.196.240`65226``````````\xB3\xBB\xBA\xCE`\xBFܺ\xCE`43`IB_NAT:12`4````
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I parse this log?&lt;/P&gt;

&lt;P&gt;add ` in segmenters.conf ?&lt;/P&gt;

&lt;P&gt;or regex?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 02:03:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-bacticks-grave-accents-in-syslog/m-p/124144#M25602</guid>
      <dc:creator>cleartext</dc:creator>
      <dc:date>2015-04-01T02:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse bacticks/grave accents (`) in syslog?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-bacticks-grave-accents-in-syslog/m-p/124145#M25603</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 17:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-bacticks-grave-accents-in-syslog/m-p/124145#M25603</guid>
      <dc:creator>tonykung</dc:creator>
      <dc:date>2015-04-01T17:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I parse bacticks/grave accents (`) in syslog?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-bacticks-grave-accents-in-syslog/m-p/124146#M25604</link>
      <description>&lt;P&gt;There is no reason to change &lt;CODE&gt;segmenters.conf&lt;/CODE&gt; 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 &lt;CODE&gt;rex&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=raw "(?&amp;lt;field1&amp;gt;[^`]+)`(?&amp;lt;field2&amp;gt;[^`]+)`(?&amp;lt;field3&amp;gt;[^`]+)`(?&amp;lt;field5&amp;gt;[^`]+)`"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Aug 2015 04:52:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-parse-bacticks-grave-accents-in-syslog/m-p/124146#M25604</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-10T04:52:11Z</dc:date>
    </item>
  </channel>
</rss>

