<?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 can I debug my logs and whitelist a word? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309295#M58173</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;Props:&lt;BR /&gt;
 [sourcetype-xyz]&lt;BR /&gt;
 TRANSFORMS-AAA=xyz-whitelist&lt;BR /&gt;
 TRANSFORMS-ZZZ=xyz-setnull&lt;/P&gt;

&lt;P&gt;Transforms:&lt;BR /&gt;
 [xyz-whitelist]&lt;BR /&gt;
 REGEX= AuthIDDetection&lt;BR /&gt;
 DEST_KEY=queue&lt;BR /&gt;
 FORMAT=indexQueue&lt;/P&gt;

&lt;P&gt;[xyz-setnull]&lt;BR /&gt;
 REGEX= debug|\|Notice&lt;BR /&gt;
 DEST_KEY=queue&lt;BR /&gt;
 FORMAT=nullQueue&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2017 23:18:29 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2017-08-29T23:18:29Z</dc:date>
    <item>
      <title>How can I debug my logs and whitelist a word?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309294#M58172</link>
      <description>&lt;P&gt;Hi Everyone.&lt;/P&gt;

&lt;P&gt;How to discard all the debug logs for a sourcetype and whitelist a word "AuthIDDetection" whenever this comes in events from sourcetype&lt;/P&gt;

&lt;P&gt;Please, could someone help with this --- I have sourcetype "xyz" to which I am discarding keyword "debug" from the events, we are discarding all the debug logs. I would like to discard all the debug logs for sourcetype -- xyz and whitelist a word "AuthIDDetection" whenever this comes in events from sourcetype "xyz"  from the same debug logs.&lt;/P&gt;

&lt;P&gt;current props.conf --&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype-xyz]
TRANSFORMS-set=xyz-setnull,setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf --&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xyz-setnull]
REGEX= debug|\\|Notice
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could you please help with this. &lt;/P&gt;

&lt;P&gt;FYI , Am following this documentation - &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.1/Deploy/Routeandfilterdatad#Discard_specific_events_and_keep_the_res"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.1/Deploy/Routeandfilterdatad#Discard_specific_events_and_keep_the_res&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 21:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309294#M58172</guid>
      <dc:creator>guru865</dc:creator>
      <dc:date>2017-08-29T21:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I debug my logs and whitelist a word?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309295#M58173</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;Props:&lt;BR /&gt;
 [sourcetype-xyz]&lt;BR /&gt;
 TRANSFORMS-AAA=xyz-whitelist&lt;BR /&gt;
 TRANSFORMS-ZZZ=xyz-setnull&lt;/P&gt;

&lt;P&gt;Transforms:&lt;BR /&gt;
 [xyz-whitelist]&lt;BR /&gt;
 REGEX= AuthIDDetection&lt;BR /&gt;
 DEST_KEY=queue&lt;BR /&gt;
 FORMAT=indexQueue&lt;/P&gt;

&lt;P&gt;[xyz-setnull]&lt;BR /&gt;
 REGEX= debug|\|Notice&lt;BR /&gt;
 DEST_KEY=queue&lt;BR /&gt;
 FORMAT=nullQueue&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 23:18:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309295#M58173</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-08-29T23:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I debug my logs and whitelist a word?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309296#M58174</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199197"&gt;@jkat54&lt;/a&gt; for the inputs .  Sure , i will check this as well . Also could you please suggest the below  written transforms.conf in tandem with props.conf.   Can i use setparsing stanza instead of white list in transforms.conf&lt;/P&gt;

&lt;P&gt;Props :&lt;/P&gt;

&lt;P&gt;[xyz_server]&lt;BR /&gt;
TRANSFORMS-set= xyz-setnull,setparsing&lt;BR /&gt;
pulldown_type = true&lt;BR /&gt;
MAX_EVENTS = 20000&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;[xyz-setnull]&lt;BR /&gt;
REGEX = debug|Notice&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[xyz-setparsing]&lt;BR /&gt;
REGEX= AuthIDDetection&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=indexQueue&lt;BR /&gt;
.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309296#M58174</guid>
      <dc:creator>guru865</dc:creator>
      <dc:date>2020-09-29T15:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I debug my logs and whitelist a word?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309297#M58175</link>
      <description>&lt;P&gt;Your example would send everything to setnull first... &lt;/P&gt;

&lt;P&gt;do this instead:&lt;BR /&gt;
TRANSFORMS-set= xyz-setparse,xyz-setnull&lt;/P&gt;

&lt;P&gt;My example had it reversed but I corrected it.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 18:48:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309297#M58175</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-08-30T18:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I debug my logs and whitelist a word?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309298#M58176</link>
      <description>&lt;P&gt;After the chat on slack, here's what you need for your regex and you only need one transforms. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.*\&amp;lt;Notice\&amp;gt;((?!AuthID).)*$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Aug 2017 20:04:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309298#M58176</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-08-31T20:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I debug my logs and whitelist a word?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309299#M58177</link>
      <description>&lt;P&gt;Thanks alot @jkat54 . Yes this works .  Setting this to nullQueue does the work&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [xyz-setnull]
 REGEX =  .*\((?!AuthID).)*$
   DEST_KEY = queue
 FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Aug 2017 22:13:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-my-logs-and-whitelist-a-word/m-p/309299#M58177</guid>
      <dc:creator>guru865</dc:creator>
      <dc:date>2017-08-31T22:13:37Z</dc:date>
    </item>
  </channel>
</rss>

