<?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: Splunk indexer filtering in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-relevant-data-from-a-noisy-application-log-and/m-p/613771#M106217</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/50030"&gt;@mahars01&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;my hint is to find the regexes to identify not relevant events in your logs and discard them using the props and trasforms method.&lt;/P&gt;&lt;P&gt;For more infos see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 13:27:01 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-09-20T13:27:01Z</dc:date>
    <item>
      <title>How to filter relevant data from a noisy application log and only index them?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-relevant-data-from-a-noisy-application-log-and/m-p/613664#M106198</link>
      <description>&lt;P&gt;I have a very noisy app log. I want to use Splunk's indexer to filter only relevant data and index them. Basically I need to match a string 'Error', only forward the matched line and the line preceding that one for indexing. In other words, I need to do a grep and a grep -B1 for the string Error. Then, I only want to index those events using Splunk's indexer filtering. How do I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: I have this log data&lt;/P&gt;&lt;P&gt;INFO: Task1&lt;/P&gt;&lt;P&gt;INFO: OK&lt;/P&gt;&lt;P&gt;INFO: Task 2&lt;/P&gt;&lt;P&gt;ERROR: exception xyz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, I only want to capture and index this:&lt;/P&gt;&lt;P&gt;INFO: Task 2&lt;/P&gt;&lt;P&gt;ERROR: exception xyz&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 15:33:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-relevant-data-from-a-noisy-application-log-and/m-p/613664#M106198</guid>
      <dc:creator>mahars01</dc:creator>
      <dc:date>2022-09-20T15:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk indexer filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-relevant-data-from-a-noisy-application-log-and/m-p/613707#M106204</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/50030"&gt;@mahars01&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;are you speaking of events filtering at Index Time (before indexing) or at Search Time (you index all and display only the needed events)?&lt;/P&gt;&lt;P&gt;Anyway, it's easy to take only some events (both at Index or Search Time) filtering and discarding the others, it's more difficoult to take one event and also the previous oneand I'm not sure that's possible at Index Time and maybe also at Search Time.&lt;/P&gt;&lt;P&gt;The only way, at Index Time is pre-parse the log using a script.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 06:50:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-relevant-data-from-a-noisy-application-log-and/m-p/613707#M106204</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-20T06:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk indexer filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-relevant-data-from-a-noisy-application-log-and/m-p/613768#M106216</link>
      <description>&lt;P&gt;I am talking about filtering the data before it gets indexed. I donot want to index irrelevant data. I know you can use sed in props.conf and sed does have that kind of feature that gives u the matched event and the one before that. Just not sure how to use that to only index the ones i need and discard the rest.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 13:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-relevant-data-from-a-noisy-application-log-and/m-p/613768#M106216</guid>
      <dc:creator>mahars01</dc:creator>
      <dc:date>2022-09-20T13:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk indexer filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-relevant-data-from-a-noisy-application-log-and/m-p/613771#M106217</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/50030"&gt;@mahars01&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;my hint is to find the regexes to identify not relevant events in your logs and discard them using the props and trasforms method.&lt;/P&gt;&lt;P&gt;For more infos see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 13:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-relevant-data-from-a-noisy-application-log-and/m-p/613771#M106217</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-20T13:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk indexer filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-relevant-data-from-a-noisy-application-log-and/m-p/613793#M106225</link>
      <description>&lt;P&gt;I had already thought of that. Unfortunately that's not going to work on my scenario.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 15:29:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-relevant-data-from-a-noisy-application-log-and/m-p/613793#M106225</guid>
      <dc:creator>mahars01</dc:creator>
      <dc:date>2022-09-20T15:29:46Z</dc:date>
    </item>
  </channel>
</rss>

