<?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: How do you discard specific fields and keep the rest? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387802#M113116</link>
    <description>&lt;P&gt;added the sample logs and requirement&lt;/P&gt;</description>
    <pubDate>Mon, 19 Nov 2018 08:47:59 GMT</pubDate>
    <dc:creator>rakeshksingh</dc:creator>
    <dc:date>2018-11-19T08:47:59Z</dc:date>
    <item>
      <title>How do you discard specific fields and keep the rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387797#M113111</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Could you please let me know how to discard specific fields and keep the rest while indexing in Splunk ?&lt;/P&gt;

&lt;P&gt;like &lt;BR /&gt;
field 1=a&lt;BR /&gt;
field 2 =b&lt;BR /&gt;
field 3 = c&lt;BR /&gt;
field 4 =d&lt;/P&gt;

&lt;P&gt;Fields 1-3 have to be discarded and only field 4 needs to be shown in Splunk events /_raw&lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Rakesh Singh&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 07:13:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387797#M113111</guid>
      <dc:creator>rakeshksingh</dc:creator>
      <dc:date>2018-11-19T07:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do you discard specific fields and keep the rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387798#M113112</link>
      <description>&lt;P&gt;hi @rakeshksingh &lt;/P&gt;

&lt;P&gt;try like this ..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=summary_data where field=4
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Nov 2018 07:33:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387798#M113112</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2018-11-19T07:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do you discard specific fields and keep the rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387799#M113113</link>
      <description>&lt;P&gt;Hi @rakeshksingh,&lt;BR /&gt;
Go through this document  to Discard specific events and keep the rest&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 07:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387799#M113113</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-11-19T07:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do you discard specific fields and keep the rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387800#M113114</link>
      <description>&lt;P&gt;If you want to modify your raw events (and as a result also the fields that get extracted from those at searchtime), the SEDCMD in props.conf is usually the best option.&lt;/P&gt;

&lt;P&gt;Can you share some sample raw events and an example of the desired output? Then we can sure help you with that.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 08:38:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387800#M113114</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-19T08:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do you discard specific fields and keep the rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387801#M113115</link>
      <description>&lt;P&gt;It will be discarding specific events but not fields of that event.&lt;/P&gt;

&lt;P&gt;sample logs :-&lt;/P&gt;

&lt;P&gt;{"message":" 2017-06-12 08:32:30,585 INFO main org.apache.coyote.ajp.AjpNioProtocol - Initializing ProtocolHandler [\"ajp-nio-8009\"]","time":1497256350}&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/storage/temp/205746-kafkadocker.jpg"&gt;https://answers.splunk.com/storage/temp/205746-kafkadocker.jpg&lt;/A&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6091i1D3A51D9ADD32455/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;So i need only message fields&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 08:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387801#M113115</guid>
      <dc:creator>rakeshksingh</dc:creator>
      <dc:date>2018-11-19T08:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you discard specific fields and keep the rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387802#M113116</link>
      <description>&lt;P&gt;added the sample logs and requirement&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 08:47:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387802#M113116</guid>
      <dc:creator>rakeshksingh</dc:creator>
      <dc:date>2018-11-19T08:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you discard specific fields and keep the rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387803#M113117</link>
      <description>&lt;P&gt;thanks for query but it all the fields are in one raw event&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 08:49:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387803#M113117</guid>
      <dc:creator>rakeshksingh</dc:creator>
      <dc:date>2018-11-19T08:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do you discard specific fields and keep the rest?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387804#M113118</link>
      <description>&lt;P&gt;So you just want to strip of that timestamp part? I'm a little curious as to why, but still, try this in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[kafka:topicEvent]
SEDCMD-striptimestamp = s/,"time":\d+//
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/Ecb0rZ/1"&gt;https://regex101.com/r/Ecb0rZ/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;NOTE: SEDCMD takes place at indextime, but after timestamping happens, so if you use that timestamp to populate _time, that would still work.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 09:07:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-discard-specific-fields-and-keep-the-rest/m-p/387804#M113118</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-11-19T09:07:39Z</dc:date>
    </item>
  </channel>
</rss>

