<?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 specific data from csv data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/559872#M92576</link>
    <description>&lt;P&gt;Removing events must be done by an indexer or heavy forwarder.&amp;nbsp; It can't be done by a UF.&lt;/P&gt;&lt;P&gt;You'll need a transform that tells Splunk which events to discard.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&amp;nbsp;and &lt;A href="https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66392" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66392&lt;/A&gt; for how to do that.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 20:43:50 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-07-16T20:43:50Z</dc:date>
    <item>
      <title>remove specific data from csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/559869#M92575</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;I have ingested the csv file via Splunk UF and I want to remove certain events that contains same field value, for example, field1 = &lt;STRONG&gt;xyz&lt;/STRONG&gt;, abc, pqr,....&amp;nbsp; &amp;nbsp; &amp;nbsp;field2 = &lt;STRONG&gt;xyz&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to send the data to null queue if &lt;STRONG&gt;field1 = xyz and field2 = xyz&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is my props.conf :&lt;/P&gt;&lt;P&gt;[&amp;lt;sourcetype&amp;gt;]&lt;BR /&gt;CHARSET = UTF-8&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;INDEXED_EXTRACTIONS = csv&lt;BR /&gt;KV_MODE = none&lt;BR /&gt;category = Structured&lt;BR /&gt;disabled = false&lt;BR /&gt;pulldown_type = true&lt;/P&gt;&lt;P&gt;Any help would be appreciated. Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 13:58:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/559869#M92575</guid>
      <dc:creator>chchanda</dc:creator>
      <dc:date>2021-07-20T13:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific data from csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/559872#M92576</link>
      <description>&lt;P&gt;Removing events must be done by an indexer or heavy forwarder.&amp;nbsp; It can't be done by a UF.&lt;/P&gt;&lt;P&gt;You'll need a transform that tells Splunk which events to discard.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&amp;nbsp;and &lt;A href="https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66392" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66392&lt;/A&gt; for how to do that.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 20:43:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/559872#M92576</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-16T20:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific data from csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/560177#M92601</link>
      <description>&lt;P&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957" target="_self"&gt;&lt;SPAN class="login-bold"&gt;richgalloway&lt;/SPAN&gt;&lt;/A&gt;, I am able to send the empty records to null queue but I also want to send few more to null queue(as cited in the query above). I have ingested the data using UF itself.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 14:47:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/560177#M92601</guid>
      <dc:creator>chchanda</dc:creator>
      <dc:date>2021-07-20T14:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific data from csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/560197#M92603</link>
      <description>&lt;P&gt;Data that is already ingested can't be removed until it expires.&amp;nbsp; You can hide events with the &lt;FONT face="courier new,courier"&gt;delete&lt;/FONT&gt; command, if you have that capability.&lt;/P&gt;&lt;P&gt;Since you already have the ability to send data to nullQueue, sending more there is just a matter of tweaking your regex or adding another transform.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 12:11:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/560197#M92603</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-20T12:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific data from csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/560201#M92605</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;Here I cannot use the regex because the field1 value and field2 values are same. for example,&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;field1&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;field2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="39px"&gt;&lt;FONT color="#FF0000"&gt;abc&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="50%" height="39px"&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;abc&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;xyz&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;pqr&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;qwe&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to send the data where field1 = field2. can you please suggest?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 12:37:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/560201#M92605</guid>
      <dc:creator>chchanda</dc:creator>
      <dc:date>2021-07-20T12:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific data from csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/560210#M92608</link>
      <description>&lt;P&gt;Depending on the props.conf settings, the transform likely is applied before field extractions so the regex should be based on the raw data rather than on individual fields.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 13:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/560210#M92608</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-20T13:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific data from csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/560211#M92609</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my props.conf :&lt;/P&gt;&lt;P&gt;[&amp;lt;sourcetype&amp;gt;]&lt;BR /&gt;CHARSET = UTF-8&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;NO_BINARY_CHECK = true&lt;BR /&gt;INDEXED_EXTRACTIONS = csv&lt;BR /&gt;KV_MODE = none&lt;BR /&gt;category = Structured&lt;BR /&gt;disabled = false&lt;BR /&gt;pulldown_type = true&lt;BR /&gt;TRANSFORMS-set = eliminate-null_data&lt;BR /&gt;description=Comma-separated value format. Set header and other settings in "Delimited Settings"&lt;/P&gt;&lt;P&gt;transforms.conf:&lt;/P&gt;&lt;P&gt;[eliminate-null_data]&lt;BR /&gt;REGEX=&amp;lt;my regex&amp;gt;&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/P&gt;&lt;P&gt;Note: the data flow can be stopped in order to send the desired data to null queue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 14:01:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/560211#M92609</guid>
      <dc:creator>chchanda</dc:creator>
      <dc:date>2021-07-20T14:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: remove specific data from csv data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/560246#M92611</link>
      <description>&lt;P&gt;I'm not sure how well Splunk supports it, but you can do matching in regex by using back references.&amp;nbsp; This expression will match if field1 and field2 have the same value.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;field1=(\w+), field2=\1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 18:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/remove-specific-data-from-csv-data/m-p/560246#M92611</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-20T18:16:20Z</dc:date>
    </item>
  </channel>
</rss>

