<?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 property from json event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Remove-property-from-json-event/m-p/560611#M92653</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;&lt;P&gt;I can see it works for you, but is there something more what have you changed? Because it still not working for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am testing it in standalone Splunk enterprise. I have already reinstalled splunk and I am creating the props.conf just in the etc/system/local/propos.conf. I am trying to keep it easy as possible.&lt;/P&gt;&lt;P&gt;I choose add data and I import my json file with k8s sourcetype. Would you have any idea why this SEDCMD is not working in my case?&amp;nbsp; I restart/refresh splunk every time&lt;/P&gt;&lt;P&gt;Thank you for your time&lt;/P&gt;&lt;P&gt;[k8s]&lt;BR /&gt;INDEXED_EXTRACTIONS = JSON&lt;BR /&gt;SEDCMD-a = s/,\s(\"country\": \"\w+[^,])//g&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 13:04:32 GMT</pubDate>
    <dc:creator>Bartlander12</dc:creator>
    <dc:date>2021-07-23T13:04:32Z</dc:date>
    <item>
      <title>Remove property from json event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-property-from-json-event/m-p/560577#M92648</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;THis is probably very easy or impossible in splunk, but I cant find any sufficient answers.&lt;/P&gt;&lt;P&gt;I am trying to remove a single property from JSOn event(during parsing or I dont want it at all), e.g. I want remove &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;country&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;&amp;nbsp;property and everything in it in every event which will come to splunk. Is something like that possible?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have tried some SEDCM in props.conf but no succes. Do you have any ideas? Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;random&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;23&lt;/SPAN&gt;&lt;SPAN&gt;, "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;random&lt;/SPAN&gt; &lt;SPAN class="t"&gt;float&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;28.173&lt;/SPAN&gt;&lt;SPAN&gt;, "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;bool&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;, "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;date&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;1990-08-31&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;regEx&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;helloooooooooooooooooooooooooooooooooooooooooooooooooo&lt;/SPAN&gt; &lt;SPAN class="t"&gt;world&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;enum&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;generator&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;firstname&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Latisha&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;lastname&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Alexandr&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;city&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Tiraspol&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;country&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Algeria&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;countryCode&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;MC&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;email&lt;/SPAN&gt; &lt;SPAN class="t"&gt;uses&lt;/SPAN&gt; &lt;SPAN class="t"&gt;current&lt;/SPAN&gt; &lt;SPAN class="t"&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Latisha.Alexandr@gmail.com&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;email&lt;/SPAN&gt; &lt;SPAN class="t"&gt;from&lt;/SPAN&gt; &lt;SPAN class="t"&gt;expression&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Latisha.Alexandr@yopmail.com&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;array&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; [ "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Dyann&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Christal&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Renie&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Tilly&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Margette&lt;/SPAN&gt;&lt;SPAN&gt;" ], "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;array&lt;/SPAN&gt; &lt;SPAN class="t"&gt;of&lt;/SPAN&gt; &lt;SPAN class="t"&gt;objects&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; [ { "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;index&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;index&lt;/SPAN&gt; &lt;SPAN class="t"&gt;start&lt;/SPAN&gt; &lt;SPAN class="t"&gt;at&lt;/SPAN&gt; &lt;SPAN class="t"&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;5&lt;/SPAN&gt;&lt;SPAN&gt; }, { "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;index&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;index&lt;/SPAN&gt; &lt;SPAN class="t"&gt;start&lt;/SPAN&gt; &lt;SPAN class="t"&gt;at&lt;/SPAN&gt; &lt;SPAN class="t"&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;6&lt;/SPAN&gt;&lt;SPAN&gt; }, { "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;index&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;, "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;index&lt;/SPAN&gt; &lt;SPAN class="t"&gt;start&lt;/SPAN&gt; &lt;SPAN class="t"&gt;at&lt;/SPAN&gt; &lt;SPAN class="t"&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;7&lt;/SPAN&gt;&lt;SPAN&gt; } ], "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Raquela&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; { "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;age&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;50&lt;/SPAN&gt;&lt;SPAN&gt; } }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="json_test.PNG" style="width: 440px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15201i450DD2A9646074E1/image-dimensions/440x294?v=v2" width="440" height="294" role="button" title="json_test.PNG" alt="json_test.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 08:54:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-property-from-json-event/m-p/560577#M92648</guid>
      <dc:creator>Bartlander12</dc:creator>
      <dc:date>2021-07-23T08:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Remove property from json event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-property-from-json-event/m-p/560583#M92650</link>
      <description>&lt;P&gt;My props.conf :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;[k8s]&lt;BR /&gt;INDEXED_EXTRACTIONS=JSON&lt;BR /&gt;TRUNCATE = 200000&lt;BR /&gt;SEDCMD-remove="country.*$&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 09:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-property-from-json-event/m-p/560583#M92650</guid>
      <dc:creator>Bartlander12</dc:creator>
      <dc:date>2021-07-23T09:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove property from json event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-property-from-json-event/m-p/560598#M92651</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236390"&gt;@Bartlander12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this SEDCMD in your props.conf.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SEDCMD-a=s/,\s(\"country\": \"\w+[^,])//g&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-07-23 at 4.32.44 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15206iA2C17D5FA3561420/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-07-23 at 4.32.44 PM.png" alt="Screenshot 2021-07-23 at 4.32.44 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一 &amp;nbsp; ?&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 11:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-property-from-json-event/m-p/560598#M92651</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-07-23T11:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Remove property from json event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-property-from-json-event/m-p/560611#M92653</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;&lt;P&gt;I can see it works for you, but is there something more what have you changed? Because it still not working for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am testing it in standalone Splunk enterprise. I have already reinstalled splunk and I am creating the props.conf just in the etc/system/local/propos.conf. I am trying to keep it easy as possible.&lt;/P&gt;&lt;P&gt;I choose add data and I import my json file with k8s sourcetype. Would you have any idea why this SEDCMD is not working in my case?&amp;nbsp; I restart/refresh splunk every time&lt;/P&gt;&lt;P&gt;Thank you for your time&lt;/P&gt;&lt;P&gt;[k8s]&lt;BR /&gt;INDEXED_EXTRACTIONS = JSON&lt;BR /&gt;SEDCMD-a = s/,\s(\"country\": \"\w+[^,])//g&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 13:04:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-property-from-json-event/m-p/560611#M92653</guid>
      <dc:creator>Bartlander12</dc:creator>
      <dc:date>2021-07-23T13:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remove property from json event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-property-from-json-event/m-p/560619#M92656</link>
      <description>&lt;P&gt;THank you, It was really matter of correct regex. For me works this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;s/&lt;SPAN class="hljs-string"&gt;"country"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"Algeria"&lt;/SPAN&gt;,//&lt;/P&gt;&lt;P&gt;But anyway I need to remove everything behind it so I will use your suggestion as well. Thank you very much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 14:27:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-property-from-json-event/m-p/560619#M92656</guid>
      <dc:creator>Bartlander12</dc:creator>
      <dc:date>2021-07-23T14:27:32Z</dc:date>
    </item>
  </channel>
</rss>

