<?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: Discard events on forwarder/Indexer which includes specific tags in Logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130281#M97768</link>
    <description>&lt;P&gt;I have created the filed and used in transform.conf but it does not seems to be working. Field Name=Test&lt;BR /&gt;
Test="Ndi reversed position attributes:" &lt;BR /&gt;
[strip_header]&lt;BR /&gt;
REGEX = Test&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;props.conf:&lt;BR /&gt;
[source::/opt/splunk_fx_prod/fx_hot_bucket/fxmp_hedger_prod/.../*]&lt;BR /&gt;
TRANSFORMS-null= strip_header&lt;/P&gt;

&lt;P&gt;Can someone help here please?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:35:56 GMT</pubDate>
    <dc:creator>nikhilagrawal</dc:creator>
    <dc:date>2020-09-28T16:35:56Z</dc:date>
    <item>
      <title>Discard events on forwarder/Indexer which includes specific tags in Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130277#M97764</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
I want to discard log lines which includes specific tag "reversed position attributes&lt;BR /&gt;
" in log file. &lt;/P&gt;

&lt;P&gt;We want to avoid lines which includes these specific tags and index rest of the log file. Is it possible to discard these log lines on forwarder level? &lt;/P&gt;

&lt;P&gt;Please suggest suitable solution. If you need more information please let me know. &lt;/P&gt;

&lt;P&gt;Thanks. &lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 10:21:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130277#M97764</guid>
      <dc:creator>nikhilagrawal</dc:creator>
      <dc:date>2014-04-14T10:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Discard events on forwarder/Indexer which includes specific tags in Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130278#M97765</link>
      <description>&lt;P&gt;Hi nikhilagrawal,&lt;/P&gt;

&lt;P&gt;First of all, this is possible in Splunk just follow the docs about &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/Forwarding/Routeandfilterdatad"&gt;route and filter data&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Regarding the forwarder, this can only be done on a forwarder which does data parsing. Universal forwarder cannot/will not parse data. To do so, you would need to setup a so called &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/Forwarding/Typesofforwarders#Heavy_and_light_forwarders"&gt;heavy forwarder&lt;/A&gt;. This setup is able to do data parsing and could route and / or filter data before sending to the indexer.&lt;BR /&gt;
Nevertheless the indexer itself is also able to parse data, so you can also setup route and filter on the indexer.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2014 10:48:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130278#M97765</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-14T10:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Discard events on forwarder/Indexer which includes specific tags in Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130279#M97766</link>
      <description>&lt;P&gt;Define the regex in transforms.conf and use the transformation in props.conf&lt;/P&gt;

&lt;P&gt;Say, for example if you want to strip header. Your header starts with #Fields.......&lt;BR /&gt;&lt;BR /&gt;
Add following stanza in transforms.conf  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[strip_header]  
REGEX = #Fields  
DEST_KEY = queue  
FORMAT = nullQueue  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In props.conf  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_stanza]  
TRANSFORMS-tonull = strip_header 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Apr 2014 11:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130279#M97766</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-04-14T11:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Discard events on forwarder/Indexer which includes specific tags in Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130280#M97767</link>
      <description>&lt;P&gt;Thanks for response.We have log pattern as below and I want to discard all events which includes "Ndi reversed position attributes" string and log the rest of the log file. &lt;/P&gt;

&lt;P&gt;2014-04-14 12:29:04,394 INFO  [com.rbsfm.fxmicropay.netpositioner.ndi.NdiPositionPublisher] Ndi reversed position attributes: CNH:-753.21:GBP:70.25:FXMPMALN:16-Apr-2014 00:00:00:0&lt;/P&gt;

&lt;P&gt;So Can I use something like this? &lt;/P&gt;

&lt;P&gt;[strip_header]&lt;BR /&gt;&lt;BR /&gt;
REGEX = "Ndi reversed position attributes "&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130280#M97767</guid>
      <dc:creator>nikhilagrawal</dc:creator>
      <dc:date>2020-09-28T16:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Discard events on forwarder/Indexer which includes specific tags in Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130281#M97768</link>
      <description>&lt;P&gt;I have created the filed and used in transform.conf but it does not seems to be working. Field Name=Test&lt;BR /&gt;
Test="Ndi reversed position attributes:" &lt;BR /&gt;
[strip_header]&lt;BR /&gt;
REGEX = Test&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;props.conf:&lt;BR /&gt;
[source::/opt/splunk_fx_prod/fx_hot_bucket/fxmp_hedger_prod/.../*]&lt;BR /&gt;
TRANSFORMS-null= strip_header&lt;/P&gt;

&lt;P&gt;Can someone help here please?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:35:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130281#M97768</guid>
      <dc:creator>nikhilagrawal</dc:creator>
      <dc:date>2020-09-28T16:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Discard events on forwarder/Indexer which includes specific tags in Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130282#M97769</link>
      <description>&lt;P&gt;Did you see MuS's comment previously? Are you doing this on an indexer or heavy forwarder (i.e. a full splunk install)?&lt;/P&gt;

&lt;P&gt;"Regarding the forwarder, this can only be done on a forwarder which does data parsing. Universal forwarder cannot/will not parse data. To do so, you would need to setup a so called heavy forwarder. "&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 20:40:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Discard-events-on-forwarder-Indexer-which-includes-specific-tags/m-p/130282#M97769</guid>
      <dc:creator>jeremiahc4</dc:creator>
      <dc:date>2014-05-21T20:40:00Z</dc:date>
    </item>
  </channel>
</rss>

