<?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 Remove syslog prefix from Json in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Remove-syslog-prefix-from-Json/m-p/377228#M68268</link>
    <description>&lt;P&gt;I have a Json log which looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jul 11 14:37:48 darktrace-dt-722-01 darktrace {"creationTime":1562855937000,"breachUrl":...}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have to remove the timestamp hostanem, all syslog prefixes until {&lt;/P&gt;

&lt;P&gt;This is how my props.conf looks like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[darktrace]
SEDCMD-StripHeader = ^([^\{]+) 
KV_MODE = json
pulldown_type = true
category = Structured
description = darktrace
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it doesn't work. I tried INDEXED_EXTRACTIONS = json as well without success.&lt;/P&gt;

&lt;P&gt;Any help is appreciated. Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 15:23:44 GMT</pubDate>
    <dc:creator>vbotnari1</dc:creator>
    <dc:date>2019-07-11T15:23:44Z</dc:date>
    <item>
      <title>Remove syslog prefix from Json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-syslog-prefix-from-Json/m-p/377228#M68268</link>
      <description>&lt;P&gt;I have a Json log which looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jul 11 14:37:48 darktrace-dt-722-01 darktrace {"creationTime":1562855937000,"breachUrl":...}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have to remove the timestamp hostanem, all syslog prefixes until {&lt;/P&gt;

&lt;P&gt;This is how my props.conf looks like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[darktrace]
SEDCMD-StripHeader = ^([^\{]+) 
KV_MODE = json
pulldown_type = true
category = Structured
description = darktrace
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it doesn't work. I tried INDEXED_EXTRACTIONS = json as well without success.&lt;/P&gt;

&lt;P&gt;Any help is appreciated. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 15:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-syslog-prefix-from-Json/m-p/377228#M68268</guid>
      <dc:creator>vbotnari1</dc:creator>
      <dc:date>2019-07-11T15:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Remove syslog prefix from Json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-syslog-prefix-from-Json/m-p/377229#M68269</link>
      <description>&lt;P&gt;It must be an actual &lt;CODE&gt;sed command&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; SEDCMD-StripHeader = s/^[^\{]+//
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jul 2019 18:55:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-syslog-prefix-from-Json/m-p/377229#M68269</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-11T18:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove syslog prefix from Json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-syslog-prefix-from-Json/m-p/377230#M68270</link>
      <description>&lt;P&gt;Thank you @woodcock . I tried your suggested sed command but it did nothing.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 07:29:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-syslog-prefix-from-Json/m-p/377230#M68270</guid>
      <dc:creator>vbotnari1</dc:creator>
      <dc:date>2019-07-12T07:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Remove syslog prefix from Json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-syslog-prefix-from-Json/m-p/377231#M68271</link>
      <description>&lt;P&gt;If you are doing a sourcetype override/overwrite, you must use the ORIGINAL value NOT the new value, then you must deploy this to the first full instance(s) of Splunk that handles the events (usually either the HF-tier, if you use this, or your Indexer tier), restart all Splunk instances there, send in new events (old events will stay broken), then test using &lt;CODE&gt;_index_earliest=-5m&lt;/CODE&gt; to be absolutely certain that you are only examining the newly indexed events.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 13:58:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-syslog-prefix-from-Json/m-p/377231#M68271</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-12T13:58:48Z</dc:date>
    </item>
  </channel>
</rss>

