<?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 REGEX transforms.conf help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/REGEX-transforms-conf-help/m-p/36080#M8001</link>
    <description>&lt;P&gt;Hello!&lt;BR /&gt;
I have this log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 013db64db1d4,250993102139,62f0cffe,3fad,fbc3,7f08ff01
 013db64db1cd,250027013354,_,3fde,fd9e,_
 013db64db1ae,@,95800970,3fad,fbb1,82e01bbc
 013db64db1cd,250993231395,78e0f35c,df5a,8b71,63a0d3d4
 013db64db106,@,9910a7a2,3fde,890d,8320b744
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to ignore events with @ on second position in every event on this log. What REGEX should I write in a file transforms.conf for nullQueue filtering?&lt;BR /&gt;
Instead of the symbol @ to be read symbol _&lt;BR /&gt;
The _ in the code for some reason does not appear.&lt;/P&gt;

&lt;P&gt;Sorry, I new in regular expression, unfortunately.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2013 09:57:45 GMT</pubDate>
    <dc:creator>ryastrebov</dc:creator>
    <dc:date>2013-05-16T09:57:45Z</dc:date>
    <item>
      <title>REGEX transforms.conf help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-transforms-conf-help/m-p/36080#M8001</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;
I have this log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 013db64db1d4,250993102139,62f0cffe,3fad,fbc3,7f08ff01
 013db64db1cd,250027013354,_,3fde,fd9e,_
 013db64db1ae,@,95800970,3fad,fbb1,82e01bbc
 013db64db1cd,250993231395,78e0f35c,df5a,8b71,63a0d3d4
 013db64db106,@,9910a7a2,3fde,890d,8320b744
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to ignore events with @ on second position in every event on this log. What REGEX should I write in a file transforms.conf for nullQueue filtering?&lt;BR /&gt;
Instead of the symbol @ to be read symbol _&lt;BR /&gt;
The _ in the code for some reason does not appear.&lt;/P&gt;

&lt;P&gt;Sorry, I new in regular expression, unfortunately.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 09:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-transforms-conf-help/m-p/36080#M8001</guid>
      <dc:creator>ryastrebov</dc:creator>
      <dc:date>2013-05-16T09:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX transforms.conf help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-transforms-conf-help/m-p/36081#M8002</link>
      <description>&lt;P&gt;"Instead of the symbol @ to be read symbol &lt;CODE&gt;_&lt;/CODE&gt;"&lt;/P&gt;

&lt;P&gt;Does this mean that you would like to send all events matching "&lt;CODE&gt;_&lt;/CODE&gt;" (underscore) in the second position to the nullQueue?&lt;/P&gt;

&lt;P&gt;In that case your transform/regex should be;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = ^\w+,_,
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Of course you could be even more specific, if you only want this nullqueueing to happen when the first position is a 12-characer hex string;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = ^[a-fA-F0-9]{12},_,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or less specific, if the first position can contain anything (apart from a comma);&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = ^[^,]+,_,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 10:32:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-transforms-conf-help/m-p/36081#M8002</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-16T10:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX transforms.conf help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-transforms-conf-help/m-p/36082#M8003</link>
      <description>&lt;P&gt;Thank you, Kristian!&lt;BR /&gt;
This is just what I needed!&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 10:36:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-transforms-conf-help/m-p/36082#M8003</guid>
      <dc:creator>ryastrebov</dc:creator>
      <dc:date>2013-05-16T10:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX transforms.conf help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-transforms-conf-help/m-p/36083#M8004</link>
      <description>&lt;P&gt;Oh, and it seems like your events have hex timestamps, does Splunk treat that gracefully?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 10:38:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-transforms-conf-help/m-p/36083#M8004</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-16T10:38:11Z</dc:date>
    </item>
  </channel>
</rss>

