<?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 1 field from syslog before sending to Splunk Cloud? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Remove-1-field-from-syslog-before-sending-to-Splunk-Cloud/m-p/609952#M105722</link>
    <description>&lt;P&gt;You can use props and transforms to remove the desc part without dropping the entire log. You need to build a good regex in order to "select" and remove just the bits you want. This is also used in case you need to anonymise any part of your data before indexing it to splunk. In your case instead of replacing said data with "xxxx" you can replace it with nothing.&lt;/P&gt;&lt;P&gt;Check this example:&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238539" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238539&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 09:52:28 GMT</pubDate>
    <dc:creator>diogofgm</dc:creator>
    <dc:date>2022-08-18T09:52:28Z</dc:date>
    <item>
      <title>Remove 1 field from syslog before sending to Splunk Cloud?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-1-field-from-syslog-before-sending-to-Splunk-Cloud/m-p/609938#M105721</link>
      <description>&lt;P&gt;I have a system X that sends syslog to a Splunk HF which then sends to Splunk Cloud.&lt;/P&gt;&lt;P&gt;The syslog contains the same data in the fields &lt;STRONG&gt;msg&lt;/STRONG&gt; and &lt;STRONG&gt;desc&lt;/STRONG&gt;, so I'd like to remove the field &lt;STRONG&gt;desc&lt;/STRONG&gt; in Splunk HF before sending the syslog. How can I do that?&lt;/P&gt;&lt;P&gt;I thought about using transforms.conf and props.conf (&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.3/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.3/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest&lt;/A&gt;), but this is used for dropping the entire log.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 08:56:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-1-field-from-syslog-before-sending-to-Splunk-Cloud/m-p/609938#M105721</guid>
      <dc:creator>JChris_</dc:creator>
      <dc:date>2022-08-18T08:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Remove 1 field from syslog before sending to Splunk Cloud?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-1-field-from-syslog-before-sending-to-Splunk-Cloud/m-p/609952#M105722</link>
      <description>&lt;P&gt;You can use props and transforms to remove the desc part without dropping the entire log. You need to build a good regex in order to "select" and remove just the bits you want. This is also used in case you need to anonymise any part of your data before indexing it to splunk. In your case instead of replacing said data with "xxxx" you can replace it with nothing.&lt;/P&gt;&lt;P&gt;Check this example:&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238539" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Anonymize-Data-in-Splunk-Search/m-p/238539&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 09:52:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-1-field-from-syslog-before-sending-to-Splunk-Cloud/m-p/609952#M105722</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2022-08-18T09:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove 1 field from syslog before sending to Splunk Cloud?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-1-field-from-syslog-before-sending-to-Splunk-Cloud/m-p/609953#M105723</link>
      <description>&lt;P&gt;Thanks, that's exactly what I end up doing after I posted this thread xD&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 09:53:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-1-field-from-syslog-before-sending-to-Splunk-Cloud/m-p/609953#M105723</guid>
      <dc:creator>JChris_</dc:creator>
      <dc:date>2022-08-18T09:53:44Z</dc:date>
    </item>
  </channel>
</rss>

