<?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: Regex for a nullQueue multiple strings in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572530#M199542</link>
    <description>&lt;P&gt;in the end i think i made a simple mistake of naming my stanza in my props file "apache" when my sourcetype was "ApacheAccess". &amp;nbsp;That helped me, but also, the regex above gave me the results. &amp;nbsp;Splunk seems to be able to read the escaping / "\/" also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 19:08:32 GMT</pubDate>
    <dc:creator>agentguerry</dc:creator>
    <dc:date>2021-10-26T19:08:32Z</dc:date>
    <item>
      <title>Regex for a nullQueue multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572503#M199531</link>
      <description>&lt;P&gt;I am trying to set a regex that works when i use say regexr.com but doesn't apply in my transforms/props file.&lt;/P&gt;&lt;P&gt;I am wanting to not ingest any apache logs that contain: &amp;nbsp;assets/js, assets/css, assets/img&lt;/P&gt;&lt;P&gt;I can set one up singular, and it works fine, but the two commented out lines, even though they work in a regex case, don't seem to apply in my transforms file. &amp;nbsp;Any insight if I may be doing something wrong?&lt;BR /&gt;&lt;BR /&gt;Thank you for any assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[drop_assets]&lt;BR /&gt;REGEX = .*assets\/js.*&lt;BR /&gt;#REGEX = .*(assets\/js|assets\/css|assets\/img).*&lt;BR /&gt;#REGEX = .*assets/js.*|.*assets/css.*|.*assets/img.*&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[apache]&lt;BR /&gt;TRANSFORMS-drop = drop_assets&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 16:44:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572503#M199531</guid>
      <dc:creator>agentguerry</dc:creator>
      <dc:date>2021-10-26T16:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for a nullQueue multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572518#M199536</link>
      <description>&lt;P&gt;Here's another regex to try.&amp;nbsp; Note that the leading and trailing ".*" is implied unless the "^" or "$" anchor is used.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX = assets\/(?:js|css|img)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Oct 2021 17:36:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572518#M199536</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-26T17:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for a nullQueue multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572523#M199538</link>
      <description>&lt;P&gt;Also, slash ("/") doesn't need escaping.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 18:04:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572523#M199538</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-26T18:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for a nullQueue multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572527#M199540</link>
      <description>&lt;P&gt;regex101.com says otherwise.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 18:32:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572527#M199540</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-26T18:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for a nullQueue multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572529#M199541</link>
      <description>&lt;P&gt;regex101 highlits a lone slash as an eror because by default it considers the given regex as delimited by slashes (it's described as PHP-compatible). If you switch to Python mode, then slash will not be highlited as error, but double quotes will, since Python regexes are delimited by double quotes.&lt;/P&gt;&lt;P&gt;Splunk doesn't use either of those as delimiters so they don't need to be escaped.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 18:45:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572529#M199541</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-26T18:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for a nullQueue multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572530#M199542</link>
      <description>&lt;P&gt;in the end i think i made a simple mistake of naming my stanza in my props file "apache" when my sourcetype was "ApacheAccess". &amp;nbsp;That helped me, but also, the regex above gave me the results. &amp;nbsp;Splunk seems to be able to read the escaping / "\/" also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 19:08:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-for-a-nullQueue-multiple-strings/m-p/572530#M199542</guid>
      <dc:creator>agentguerry</dc:creator>
      <dc:date>2021-10-26T19:08:32Z</dc:date>
    </item>
  </channel>
</rss>

