<?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: Need help with nullQueue (specifics included) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39847#M9148</link>
    <description>&lt;P&gt;Unfortunately it's still not working.  I modified my props stanza to [opsec] and used the simple REGEX="service=80".  I have also modified the props.conf and transforms.conf in the global directory instead of the app directory and not working either.  I'm all out of ideas on this... might need to call for Splunk support.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2013 15:45:35 GMT</pubDate>
    <dc:creator>echojacques</dc:creator>
    <dc:date>2013-08-20T15:45:35Z</dc:date>
    <item>
      <title>Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39829#M9130</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;For a few days now I've been tweaking my props.conf, transforms.conf, and rebooting Splunk trying to exclude certain events from being indexed (nullQueue).  I have included the stanzas in my props.conf, transforms.conf, and an example of an event that I am trying to exclude below.  I'm hoping that someone can save me another week of tweaking and rebooting Splunk trying to get this nullQueue to work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;My app-local-props.conf file contains: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::*opsec*]
TRANSFORMS-null:setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note: I'm not sure if I identifed the source correctly, you can see the full long path in the example event I included below.&lt;/P&gt;

&lt;P&gt;My app-local-transforms.conf file contains:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX=(?m)^service=(80)
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'm trying to exclude:&lt;/P&gt;

&lt;P&gt;Here's an example of one of the multi-line events that contain "service=80" that I'm trying to send to the nullQueue.  I modified the original event to shorten the length and also changed the IP addresses.  You can see "service=80" near the middle of the second line:&lt;/P&gt;

&lt;P&gt;loc=12345|time=19Aug2013 14:44:28|action=drop|orig=10.10.10.10|i/f_dir=inbound|i/f_name=eth1-01|has_accounting=0|src=10.10.10.10|s_port=49528|dst=10.10.10.10|service=80|proto=tcp|message_info=Address spoofinghost=SPLUNK-01 | sourcetype=opsec | source=/data/splunk/etc/apps/Splunk_TA_opseclea_linux22/bin/lea-loggrabber.sh --configentity SplunkLEA&lt;/P&gt;

&lt;P&gt;I've tried many different variations (at least 20) of the REGEX but nothing has worked so far.  Any advice or guidance is very appreciated!!&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39829#M9130</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2020-09-28T14:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39830#M9131</link>
      <description>&lt;P&gt;I can see a couple of problems.&lt;/P&gt;

&lt;P&gt;First and most importantly, your regex is looking for "service=80" at the &lt;STRONG&gt;start&lt;/STRONG&gt; of the line. (That's the significance of &lt;CODE&gt;^&lt;/CODE&gt;). So your regex will not match your sample event. I would advise you to try your regexes in a tool like &lt;A href="http://regexpal.com/"&gt;http://regexpal.com/&lt;/A&gt; or &lt;A href="http://www.gskinner.com/RegExr/"&gt;http://www.gskinner.com/RegExr/&lt;/A&gt; so you know that they match correctly.&lt;/P&gt;

&lt;P&gt;Also, you should make sure that the source stanza (&lt;CODE&gt;[source::*opsec*]&lt;/CODE&gt;) is being identified correctly. Wildcards will match anything but slashes so if you do have slashes in your source, chances are your settings for this source aren't being applied at all.&lt;/P&gt;

&lt;P&gt;Finally you have "TRANSFORMS-null:setnull" - there should not be a colon there, it should be an equals sign, so "TRANSFORMS-null = setnull".&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 21:04:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39830#M9131</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-19T21:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39831#M9132</link>
      <description>&lt;P&gt;Ayn,&lt;BR /&gt;
Thanks for the help.  I used regexpal and modified my files as follows:&lt;/P&gt;

&lt;P&gt;props.conf (modified source and fixed colon):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::(/data/splunk/etc/apps/Splunk_TA_opseclea_linux22/bin/lea-loggrabber.sh --configentity SplunkLEA)]
 TRANSFORMS-null=setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf (simplified REGEX per regexpal):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX=service=80
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am rebooting Splunk right now and will let you know if it works!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 21:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39831#M9132</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-19T21:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39832#M9133</link>
      <description>&lt;P&gt;Still not working... should I use quotes around the source in the props source instead of parens since it's a long source with hyphens?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 21:27:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39832#M9133</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-19T21:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39833#M9134</link>
      <description>&lt;P&gt;That source looks really weird, so it's very likely that it's not matching properly. Is that really the exact source you're getting for your opsec data in Splunk? For troubleshooting purposes I'd throw in a field extraction that is guaranteed to match something under the same stanza to see if it's being applied or not. That way you don't have to go restart Splunk to see if the stanza is being applied or not.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 21:30:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39833#M9134</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-19T21:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39834#M9135</link>
      <description>&lt;P&gt;Also, apart from this - just to make sure - you are putting all this configuration on the indexer, not a forwarder, I hope.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 21:31:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39834#M9135</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-19T21:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39835#M9136</link>
      <description>&lt;P&gt;Yes, it's all on the indexer (the Linux system that is running our Splunk).  Yes, that's the exact source as it appears under "Sources" on the main Splunk search page.  Maybe I should drop the "--configentity SplunkLEA" part which looks like a switch or a flag?&lt;/P&gt;

&lt;P&gt;I was able to successfully exclude some windows events from the Splunk index last month so I know that the nullQueue works.  Just can't get it to work for my opsec.&lt;/P&gt;

&lt;P&gt;Also, I am modifying the files in the APP LOCAL directory, not in the APP DEFAULT directory.  Hope this is correct.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 21:54:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39835#M9136</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-19T21:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39836#M9137</link>
      <description>&lt;P&gt;Oh, and the opsec source is actually the OPSEC LEA add-on.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 21:57:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39836#M9137</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-19T21:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39837#M9138</link>
      <description>&lt;P&gt;Use your &lt;CODE&gt;sourcetype&lt;/CODE&gt; instead of the &lt;CODE&gt;source&lt;/CODE&gt; in props.conf, if possible.&lt;/P&gt;

&lt;P&gt;and yes, do it in local, not in default. Just to ensure that it is going to happen, make the changes to props/transforms in &lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 22:02:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39837#M9138</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-19T22:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39838#M9139</link>
      <description>&lt;P&gt;kristian,&lt;/P&gt;

&lt;P&gt;So I will modify my props.conf to use the sourcetype like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype::opsec]
 TRANSFORMS-null=setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I will reboot and let you know if it works.  Also, I thought I had to make the changes in the APP directory??&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 22:05:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39838#M9139</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-19T22:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39839#M9140</link>
      <description>&lt;P&gt;Also, not sure if it matters, but I have the stanzas at the top/beginning of my props.conf and transforms.conf files.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 22:14:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39839#M9140</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-19T22:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39840#M9141</link>
      <description>&lt;P&gt;Using sourcetype::opsec instead did not work...&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 22:16:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39840#M9141</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-19T22:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39841#M9142</link>
      <description>&lt;P&gt;I had to disable the app since I was getting close to exceeding my license due to this problem.&lt;/P&gt;

&lt;P&gt;Will try again tomorrow.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 22:34:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39841#M9142</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-19T22:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39842#M9143</link>
      <description>&lt;P&gt;Global stanzas should go at the top (best practice), correct stanzas work where they belong.&lt;BR /&gt;
Kristian gave you the quick answer to this document: &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/Admin/Wheretofindtheconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.4/Admin/Wheretofindtheconfigurationfiles&lt;/A&gt;&lt;BR /&gt;
Which basically says that index time activity happens first at the global level, which is controlled first by the etc/system/local configuration files.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 23:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39842#M9143</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-08-19T23:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39843#M9144</link>
      <description>&lt;P&gt;Sourcetype definitions in props.conf don't use "sourcetype::" as a prefix. If your type is called "mytype" the stanza in props.conf would be [mytype].&lt;/P&gt;

&lt;P&gt;Strictly speaking, I don't think you need the (?m) as events coming out of the LEA aren't multiline, as best as I can remember. Instead, they're simply long, and wrap in the UI.&lt;/P&gt;

&lt;P&gt;I test my regexes for correctness in the UI before applying the transforms.conf rule to drop the events (making sure I got the right syntax before applying a potentially destructive rule). You could use regexr or other tools as Ayn suggests, but if you've already got similar events in Splunk and just want to validate the regex, try using the regex command:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=opsec | regex _raw="service=80"&lt;/CODE&gt; This only returns rows where the whole line (_raw field) contains the service=80 string. If you get events back, then you know you've found the rule. But check the discovered service field, as this would match service=8000 or whatever as well. You might want to use the | as anchors in your regex, but remember that those would have to be escaped:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=opsec | regex _raw="|service=80|"&lt;/CODE&gt;. When you're satisfied that you have the regex right, cut and paste it into your transforms, restart your indexer, bingo.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 23:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39843#M9144</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-08-19T23:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39844#M9145</link>
      <description>&lt;P&gt;echojaques: if the sourcetype is &lt;CODE&gt;opsec&lt;/CODE&gt; then the stanza in props.conf should be;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[opsec]&lt;BR /&gt;
TRANSFORMS-null = setnull&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Doing it in etc/system/local just ensures that the setting will have the highest priority and will always be active, regardelss of whether you enable/disable certain apps.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 08:24:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39844#M9145</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-20T08:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39845#M9146</link>
      <description>&lt;P&gt;lukejadamec: thanks for the explanation, that makes sense.  I'll test it at the global level today.&lt;/P&gt;

&lt;P&gt;kristian: i have changed my props stanza to [opsec].  I'll let you know if it works after rebooting and testing.&lt;/P&gt;

&lt;P&gt;I have another nullQueue (that works) setup for my Windows WMI data.  It is also using: TRANSFORMS-null = setnull.  Is it OK that it has the same name (setnull) or should I change this nullQueue name to setnull-opsec?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 15:02:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39845#M9146</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-20T15:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39846#M9147</link>
      <description>&lt;P&gt;sowings: Thanks very much for all of this information.  I have removed (?m) from my REGEX and I'm now testing this REGEX in my transforms:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX="service=80"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'll use the | anchor to limit to "80" once I get "service=80" to work (trying to keep it simple at first).&lt;/P&gt;

&lt;P&gt;I did test my regex in regexpal.com and also in the search UI before modifying it in transforms.  But I wasn't using the "regex_raw" command before (I was just typing "service=80" etc. into the UI search) so thanks for that tip.&lt;/P&gt;

&lt;P&gt;I'll test again this morning and let you know if it works.&lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 15:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39846#M9147</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-20T15:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39847#M9148</link>
      <description>&lt;P&gt;Unfortunately it's still not working.  I modified my props stanza to [opsec] and used the simple REGEX="service=80".  I have also modified the props.conf and transforms.conf in the global directory instead of the app directory and not working either.  I'm all out of ideas on this... might need to call for Splunk support.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 15:45:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39847#M9148</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-20T15:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with nullQueue (specifics included)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39848#M9149</link>
      <description>&lt;P&gt;Ok, I have "moved" the nullQueue from the APP-local directory to the home-etc-system-local directory and still not working...&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 15:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-nullQueue-specifics-included/m-p/39848#M9149</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-08-20T15:46:25Z</dc:date>
    </item>
  </channel>
</rss>

