<?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: Strip leading junk to index json in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Strip-leading-junk-to-index-json/m-p/506923#M86271</link>
    <description>&lt;P&gt;Please provide examples of the original data and the desired output.&amp;nbsp; It's almost impossible to solve regex problems without that.&lt;/P&gt;&lt;P&gt;That said, the &lt;FONT face="courier new,courier"&gt;REGEX&lt;/FONT&gt; line shown is not valid in transforms.conf.&amp;nbsp; Sed commands are not supported so the regex contains unescaped delimiter characters (slashes).&lt;/P&gt;&lt;P&gt;Additionally, &lt;FONT face="courier new,courier"&gt;FORMAT=nullQueue&lt;/FONT&gt; discards entire events that match the &lt;FONT face="courier new,courier"&gt;REGEX&lt;/FONT&gt;, not just the text that matches.&lt;/P&gt;&lt;P&gt;You probably want to use &lt;FONT face="courier new,courier"&gt;SEDCMD&lt;/FONT&gt; in props.conf.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 18:35:38 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-07-01T18:35:38Z</dc:date>
    <item>
      <title>Strip leading junk to index json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Strip-leading-junk-to-index-json/m-p/506922#M86270</link>
      <description>&lt;P&gt;I have some json coming in from syslog and there's a bunch of added junk that's inhibiting the field extraction.&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;[eliminate_header]&lt;BR /&gt;REGEX=s/^[^{]+//g&lt;BR /&gt;DEST_KEY=queue&lt;BR /&gt;FORMAT=nullQueue&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;[syslog_cue]&lt;BR /&gt;TRANSFORMS-t1=eliminate_header&lt;/P&gt;&lt;P&gt;and a couple other things but can't quite seem to get the outcome I want. Testing the regex works, but isn't helping in the way I need it to.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 18:20:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Strip-leading-junk-to-index-json/m-p/506922#M86270</guid>
      <dc:creator>ntripp_element</dc:creator>
      <dc:date>2020-07-01T18:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Strip leading junk to index json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Strip-leading-junk-to-index-json/m-p/506923#M86271</link>
      <description>&lt;P&gt;Please provide examples of the original data and the desired output.&amp;nbsp; It's almost impossible to solve regex problems without that.&lt;/P&gt;&lt;P&gt;That said, the &lt;FONT face="courier new,courier"&gt;REGEX&lt;/FONT&gt; line shown is not valid in transforms.conf.&amp;nbsp; Sed commands are not supported so the regex contains unescaped delimiter characters (slashes).&lt;/P&gt;&lt;P&gt;Additionally, &lt;FONT face="courier new,courier"&gt;FORMAT=nullQueue&lt;/FONT&gt; discards entire events that match the &lt;FONT face="courier new,courier"&gt;REGEX&lt;/FONT&gt;, not just the text that matches.&lt;/P&gt;&lt;P&gt;You probably want to use &lt;FONT face="courier new,courier"&gt;SEDCMD&lt;/FONT&gt; in props.conf.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 18:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Strip-leading-junk-to-index-json/m-p/506923#M86271</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-01T18:35:38Z</dc:date>
    </item>
  </channel>
</rss>

