<?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: Remove event prefix from JSON using SEDCMD in props.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Remove-event-prefix-from-JSON-using-SEDCMD-in-props-conf/m-p/657244#M227007</link>
    <description>&lt;P&gt;By applying these settings in props.conf the prefix was removed and events are parsing as expected.&lt;/P&gt;&lt;P&gt;SEDCMD-1=s/^[^\{]+{"records":\s+\[\{"value":\s//&lt;/P&gt;&lt;P&gt;SEDCMD-2=s/}\]\}//&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 01:28:06 GMT</pubDate>
    <dc:creator>iamsplunker</dc:creator>
    <dc:date>2023-09-12T01:28:06Z</dc:date>
    <item>
      <title>How to Remove event prefix from JSON using SEDCMD in props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Remove-event-prefix-from-JSON-using-SEDCMD-in-props-conf/m-p/657236#M227004</link>
      <description>&lt;P&gt;Hi Splunk community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've JSON logs and I wanted to remove the prefix from the events and capture from&amp;nbsp;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN&gt;successfulSetoflog&lt;/SPAN&gt;&lt;BR /&gt;until AZURE API Health Event"}&lt;/P&gt;
&lt;P&gt;Sample Event:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2020-02-10T17:42:41.088Z 775ab4c6-ccc3-600b-9c84-124320628f00&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;{"&lt;/SPAN&gt;&lt;SPAN&gt;records&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;[{"&lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;{"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;successfulSetoflog":&amp;nbsp;[{"awsAccountId":&amp;nbsp;"123456789123", "event":&amp;nbsp;{"arn":&amp;nbsp;"&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;arn:aws:health:us-east-........................................................&amp;nbsp;&amp;nbsp;1}, "detail-case": "AZURE API Health Event"}&lt;/STRONG&gt;}]}&lt;BR /&gt;&lt;BR /&gt;The expected output would be&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;{"successfulSetoflog":&amp;nbsp;[{"awsAccountId":&amp;nbsp;"123456789123", "event":&amp;nbsp;{"arn":&amp;nbsp;"arn:aws:health:us-east-........................................................&amp;nbsp;&amp;nbsp;1}, "detail-case": "AZURE API Health Event"}&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 21:15:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Remove-event-prefix-from-JSON-using-SEDCMD-in-props-conf/m-p/657236#M227004</guid>
      <dc:creator>iamsplunker</dc:creator>
      <dc:date>2023-09-12T21:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Remove event prefix from JSON using SEDCMD in props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Remove-event-prefix-from-JSON-using-SEDCMD-in-props-conf/m-p/657244#M227007</link>
      <description>&lt;P&gt;By applying these settings in props.conf the prefix was removed and events are parsing as expected.&lt;/P&gt;&lt;P&gt;SEDCMD-1=s/^[^\{]+{"records":\s+\[\{"value":\s//&lt;/P&gt;&lt;P&gt;SEDCMD-2=s/}\]\}//&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 01:28:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Remove-event-prefix-from-JSON-using-SEDCMD-in-props-conf/m-p/657244#M227007</guid>
      <dc:creator>iamsplunker</dc:creator>
      <dc:date>2023-09-12T01:28:06Z</dc:date>
    </item>
  </channel>
</rss>

