<?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: issues with SEDCMD in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/issues-with-SEDCMD/m-p/321348#M59930</link>
    <description>&lt;P&gt;that doesn't work unfortunately, is there an issue with my props.conf ?&lt;/P&gt;</description>
    <pubDate>Sat, 08 Apr 2017 13:17:03 GMT</pubDate>
    <dc:creator>rusty009</dc:creator>
    <dc:date>2017-04-08T13:17:03Z</dc:date>
    <item>
      <title>issues with SEDCMD</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/issues-with-SEDCMD/m-p/321346#M59928</link>
      <description>&lt;P&gt;I have the below file being indexed in spunk,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "records": 
    [

        { &amp;lt;event}}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I would like to get rid of everything before { &lt;/P&gt;

&lt;P&gt;so I'm executing the SEDCMD like below,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-StripHeader = s/{\s+\"records\":\s+\[\s+{/{/1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it doesn't seem to be working. When I test it using the below splunk command it works a treat,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="json:blob" | rex field=_raw mode=sed "s/{\s+\"records\":\s+\[\s+{/{/1"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have restarted splunk, it's running on a single instance ( so this is my search head and indexer) - any ideas what I'm doing wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 15:05:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/issues-with-SEDCMD/m-p/321346#M59928</guid>
      <dc:creator>rusty009</dc:creator>
      <dc:date>2017-04-07T15:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: issues with SEDCMD</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/issues-with-SEDCMD/m-p/321347#M59929</link>
      <description>&lt;P&gt;Try with this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-StripHeader = s/^(\{\s+\"records\":\s+\[\s+)//
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;REGEX 101 link to see the regular exp working &lt;A href="https://regex101.com/r/zkIXVa/1"&gt;https://regex101.com/r/zkIXVa/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Please note that SEDCMD is an index-time operation and would only affect any new event that come after you've configured it. Any existing event will not modified.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 15:36:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/issues-with-SEDCMD/m-p/321347#M59929</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-07T15:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: issues with SEDCMD</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/issues-with-SEDCMD/m-p/321348#M59930</link>
      <description>&lt;P&gt;that doesn't work unfortunately, is there an issue with my props.conf ?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 13:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/issues-with-SEDCMD/m-p/321348#M59930</guid>
      <dc:creator>rusty009</dc:creator>
      <dc:date>2017-04-08T13:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: issues with SEDCMD</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/issues-with-SEDCMD/m-p/321349#M59931</link>
      <description>&lt;P&gt;The regex of your's works too. I guess if you've a copy of the file that you're monitoring available locally, you can test the SEDCMD command from Add data wizard. (Settings-&amp;gt; Add data -&amp;gt; Upload, go to advanced tab of left side bar and add SEDCMD of your).&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 21:44:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/issues-with-SEDCMD/m-p/321349#M59931</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-08T21:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: issues with SEDCMD</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/issues-with-SEDCMD/m-p/321350#M59932</link>
      <description>&lt;P&gt;which is the best instance to add SEDCMD  ??&lt;/P&gt;

&lt;P&gt;Is it heavy forwarder or indexer ? &lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 01:30:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/issues-with-SEDCMD/m-p/321350#M59932</guid>
      <dc:creator>nawazns5038</dc:creator>
      <dc:date>2019-04-05T01:30:15Z</dc:date>
    </item>
  </channel>
</rss>

