<?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: I have started the conditional logging on Splunk but still i'm getting the logs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202610#M40076</link>
    <description>&lt;P&gt;I have added these files in the indexer as the forwarder is a Universal forwarder. Yes i do have INFO strings in the events coming from the source.&lt;BR /&gt;
After applying the conditional logging i can see the INFO events.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2016 10:49:49 GMT</pubDate>
    <dc:creator>ayushchoudhary</dc:creator>
    <dc:date>2016-11-02T10:49:49Z</dc:date>
    <item>
      <title>I have started the conditional logging on Splunk but still i'm getting the logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202608#M40074</link>
      <description>&lt;P&gt;I have configured transforms.conf and props.conf on below path&lt;/P&gt;

&lt;H3&gt;/opt/splunk/etc/apps/search/local&lt;/H3&gt;

&lt;H3&gt;transforms.conf&lt;/H3&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = INFO&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;H3&gt;props.conf&lt;/H3&gt;

&lt;P&gt;[source::/opt/assays/log/assays.stdout.log]&lt;BR /&gt;
TRANSFORMS-null= setnull&lt;/P&gt;

&lt;P&gt;But still i'm getting logs from source = /opt/assays/log/assays.stdout.log. &lt;BR /&gt;
Please Help.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 07:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202608#M40074</guid>
      <dc:creator>ayushchoudhary</dc:creator>
      <dc:date>2016-11-02T07:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: I have started the conditional logging on Splunk but still i'm getting the logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202609#M40075</link>
      <description>&lt;P&gt;You seem to be following good examples. The docs you want to follow for this are here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You didn't mention where you put these files. They need to go on the splunk system that does the parsing. This is most likely the indexers, but could be a heavy weight forwarder.&lt;/P&gt;

&lt;P&gt;Use btool to validate your configurations: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.0/Troubleshooting/Usebtooltotroubleshootconfigurations"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.0/Troubleshooting/Usebtooltotroubleshootconfigurations&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you have the files on the correct splunk system, and they validate with btool, the only other variable is, does your source in props match, and does your REGEX match?&lt;/P&gt;

&lt;P&gt;Hope this helps. Good luck.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 08:13:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202609#M40075</guid>
      <dc:creator>bshuler_splunk</dc:creator>
      <dc:date>2016-11-02T08:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: I have started the conditional logging on Splunk but still i'm getting the logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202610#M40076</link>
      <description>&lt;P&gt;I have added these files in the indexer as the forwarder is a Universal forwarder. Yes i do have INFO strings in the events coming from the source.&lt;BR /&gt;
After applying the conditional logging i can see the INFO events.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 10:49:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202610#M40076</guid>
      <dc:creator>ayushchoudhary</dc:creator>
      <dc:date>2016-11-02T10:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: I have started the conditional logging on Splunk but still i'm getting the logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202611#M40077</link>
      <description>&lt;P&gt;I put this app together as an example. Please only use it in a non-production environment.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://drive.google.com/file/d/0B0WaoXj_CtFPQlZsNHNTZmJnMzQ/view?usp=sharing"&gt;SA-null_queue.spl&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I noticed when building it, that getting the props.conf:source:: stanza was tricky, as it did not accept $SPLUNK_HOME&lt;/P&gt;

&lt;P&gt;I looked at the entries that match source:: for examples:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk cmd btool props list source:: | grep \\[
[source::...((.(bak|old))|,v|~|#)]
[source::....(0t|a|ali|asa|au|bmp|cg|cgi|class|d|dat|deb|del|dot|dvi|dylib|elc|eps|exe|ftn|gif|hlp|hqx|hs|icns|ico|inc|iso|jame|jin|jpeg|jpg|kml|la|lhs|lib|lo|lock|mcp|mid|mp3|mpg|msf|nib|o|obj|odt|ogg|ook|opt|os|pal|pbm|pdf|pem|pgm|plo|png|po|pod|pp|ppd|ppm|ppt|prc|ps|psd|psym|pyc|pyd|rast|rb|rde|rdf|rdr|rgb|ro|rpm|rsrc|so|ss|stg|strings|tdt|tif|tiff|tk|uue|vhd|xbm|xlb|xls|xlw)]
[source::....(?&amp;lt;!tar.)gz(.\d+)?]
[source::....(cache|class|cxx|dylib|jar|lo|xslt|md5|rpm|deb|iso|vim)]
[source::....(css|htm|html|sgml|shtml|template)]
[source::....(jar)(.\d+)?]
[source::....(tar.gz|tgz)(.\d+)?]
[source::....(tbz|tbz2)(.\d+)?]
[source::....Z(.\d+)?]
[source::....bz2?(.\d+)?]
[source::....crash.log(.\d+)?]
[source::....csv]
[source::....tar(.\d+)?]
[source::.../(apache|httpd).../error*]
[source::.../(readme|README)...]
[source::.../(u_|)ex(tend|\d{4,8})*?.log]
 ... 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this example helps. Good Luck!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 14:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202611#M40077</guid>
      <dc:creator>bshuler_splunk</dc:creator>
      <dc:date>2016-11-02T14:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: I have started the conditional logging on Splunk but still i'm getting the logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202612#M40078</link>
      <description>&lt;P&gt;Configuration seems okay. Probably missing open &lt;CODE&gt;[&lt;/CODE&gt; is just this Slunk answer issue. &lt;BR /&gt;
Have you restarted the indexer(s)? If you deployed this to indexers using Cluster Master, you might need to wait for a while due to how Splunk reload works for regex-replacement(transforms.conf). &lt;BR /&gt;
Or, you restart CPs and see if you still have the issue. &lt;/P&gt;

&lt;P&gt;As @bshulter said, btool to check configuration is important. Also checking configuration file permissions or configuration name would be worth.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 22:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202612#M40078</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2016-11-02T22:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: I have started the conditional logging on Splunk but still i'm getting the logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202613#M40079</link>
      <description>&lt;P&gt;Hi ayushchoudhary,&lt;BR /&gt;
probably I'm doing a stupid question: do you inserted your .conf files in your indexers or in your forwarders? they must be on Indexers.&lt;/P&gt;

&lt;P&gt;In addition I usually not use nullQueue alone and I never use source or host in stanzas but always sourcetype because sometimes fails, try in this way:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;on props.conf:&lt;/P&gt;

&lt;P&gt;[your_sourcetype]&lt;BR /&gt;
TRANSFORMS-filter_sourcetype1=set_sourcetype1,set_nullqueue&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;on transforms.conf:&lt;/P&gt;

&lt;P&gt;[set_nullqueue]&lt;BR /&gt;
REGEX=INFO&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=nullQueue&lt;BR /&gt;
[set_sourcetype1]&lt;BR /&gt;
REGEX=.&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;BR /&gt;
Note that it's important sets order in props.conf TRANSFORMS command, it isn't important in transforms.conf stanzas.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;This run if you want to take all but not INFO; if you need to take only something and discard other, you have to invert order in props.conf sets and change regexes.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:54:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202613#M40079</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T02:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: I have started the conditional logging on Splunk but still i'm getting the logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202614#M40080</link>
      <description>&lt;P&gt;in your transforms , you are missing&lt;BR /&gt;
REGEX=.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 08:59:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202614#M40080</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2016-11-05T08:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: I have started the conditional logging on Splunk but still i'm getting the logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202615#M40081</link>
      <description>&lt;P&gt;Everything working fine now, thanks all. &lt;BR /&gt;
All the logs having INFO are now stopped to be indexed.&lt;/P&gt;

&lt;P&gt;Just out of curiosity can any one help on what parameters we can apply conditional logging i.e. we can apply using hostname and source but we apply conditional logging using index ?? &lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 10:37:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-have-started-the-conditional-logging-on-Splunk-but-still-i-m/m-p/202615#M40081</guid>
      <dc:creator>ayushchoudhary</dc:creator>
      <dc:date>2016-11-05T10:37:29Z</dc:date>
    </item>
  </channel>
</rss>

