<?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 to not index log lines that have these 2 phrases in them? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313045#M58655</link>
    <description>&lt;P&gt;you need the escape/slash because you are describing an actual open parenthesis character, not starting a group.&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2017 22:19:58 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-05-26T22:19:58Z</dc:date>
    <item>
      <title>how to not index log lines that have these 2 phrases in them?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313040#M58650</link>
      <description>&lt;P&gt;Looking to get the correct regex statement for my transforms.conf to select both the "(vert.x-eventloop-thread-4)" and the "Request is valid" strings. If these both exist on that same line, I do not want to ingest that line into Splunk.&lt;/P&gt;

&lt;P&gt;And what if I want to also exclude other lines of logs that contain other text strings? Like to also exclude rows with "validating the required header fields"?&lt;/P&gt;

&lt;P&gt;Can I combine multiple regex lines into one? Not sure how that works.&lt;/P&gt;

&lt;P&gt;Example Log:&lt;BR /&gt;
2017-05-25 23:22:31,422 INFO &lt;STRONG&gt;(vert.x-eventloop-thread-4)&lt;/STRONG&gt; ?.: TID: b47d618c-a5fc-4d41-a7a2-b1c0fae15dc0 - &lt;STRONG&gt;Request is valid&lt;/STRONG&gt;&lt;BR /&gt;
2017-05-25 23:22:31,419 INFO &lt;STRONG&gt;(vert.x-eventloop-thread-4)&lt;/STRONG&gt; ?.: TID: b47d618c-a5fc-4d41-a7a2-b1c0fae15dc0 - &lt;STRONG&gt;validating the required header fields&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thinking I got the rest...&lt;/P&gt;

&lt;P&gt;Props.conf&lt;BR /&gt;
[default]&lt;BR /&gt;
TRANSFORMS-null= setnull&lt;/P&gt;

&lt;P&gt;Transforms.conf&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX = ???HELP???&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 19:54:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313040#M58650</guid>
      <dc:creator>joesrepsol</dc:creator>
      <dc:date>2017-05-26T19:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to not index log lines that have these 2 phrases in them?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313041#M58651</link>
      <description>&lt;P&gt;This regex string should get you started.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\(vert.x-eventloop-thread-4\).*(Request is valid|validating the required header fields)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 May 2017 20:22:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313041#M58651</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-05-26T20:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to not index log lines that have these 2 phrases in them?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313042#M58652</link>
      <description>&lt;P&gt;Do I need the leading "\" on that regex line? So would it look like this?&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = (vert.x-eventloop-thread-4).*(Request is valid|validating the required header fields)&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 20:24:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313042#M58652</guid>
      <dc:creator>joesrepsol</dc:creator>
      <dc:date>2017-05-26T20:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to not index log lines that have these 2 phrases in them?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313043#M58653</link>
      <description>&lt;P&gt;Adjust to your liking, I left the ending string as dot start soup (.*) for you to either leave non-specific or create additional options if required.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;\(vert\.[^)]+\)(?:[^-]++|-(?=\w+))*-\s(?:.*)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This has the added benefit of using greedy negation on the hyphen with proper alternation for some regex engine optimization.&lt;/P&gt;

&lt;P&gt;--&lt;BR /&gt;
Joe&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 20:37:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313043#M58653</guid>
      <dc:creator>jwalbert</dc:creator>
      <dc:date>2017-05-26T20:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to not index log lines that have these 2 phrases in them?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313044#M58654</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = \s+\(vert.x-eventloop-thread-4\)\s+|\s+- Request is valid|\s+- validating the required header fields
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 May 2017 22:01:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313044#M58654</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-26T22:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to not index log lines that have these 2 phrases in them?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313045#M58655</link>
      <description>&lt;P&gt;you need the escape/slash because you are describing an actual open parenthesis character, not starting a group.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 22:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313045#M58655</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-05-26T22:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to not index log lines that have these 2 phrases in them?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313046#M58656</link>
      <description>&lt;P&gt;Trying all these combinations... waiting for testing to confirm which works best (or at all). THANKS FOR ALL THE SUGGESTIONS!&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 22:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313046#M58656</guid>
      <dc:creator>joesrepsol</dc:creator>
      <dc:date>2017-05-26T22:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to not index log lines that have these 2 phrases in them?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313047#M58657</link>
      <description>&lt;P&gt;Looks like I no longer need to check for the &lt;EM&gt;two string matches&lt;/EM&gt; per index line... now I just need to eliminate any logs that have these entries... So this got simpler, but I'm still fumbling on the REGEX line to start...&lt;/P&gt;

&lt;P&gt;I want to eliminate any logs with any of these 3 values in that log.&lt;BR /&gt;
"Request is valid" or "validating the required header fields" or "getSystemSetupHandler"&lt;/P&gt;

&lt;P&gt;Tried this line, but it's only seeing the 2nd and 3rd values (which is working) but I'm still getting events with the 1st value (Request is valid).&lt;/P&gt;

&lt;P&gt;REGEX = \s+- Request is valid|\s+- validating the required header fields|\s+- getSystemSetupHandler&lt;/P&gt;

&lt;P&gt;What am I missing?&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 23:14:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313047#M58657</guid>
      <dc:creator>joesrepsol</dc:creator>
      <dc:date>2017-05-26T23:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to not index log lines that have these 2 phrases in them?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313048#M58658</link>
      <description>&lt;P&gt;Did some testing on regex101.com and this "looks" like it works, but the events are still coming in and being ingesting into Splunk. So I'm missing something. Tried many versions of the example above, and regex101.com doesn't validate everything as it should be. Should I not use Regex101.com for splunk regex??&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;So  out of the events coming in I don't want any with these matching phrases:&lt;/STRONG&gt;&lt;BR /&gt;
“Request is valid”&lt;BR /&gt;
“validating the [\w-]+ header field. value:”&lt;BR /&gt;
“Validated service ticket”&lt;BR /&gt;
“getAppActiveAndSecretResult:”&lt;BR /&gt;
“getSystemSetupHandler:”&lt;BR /&gt;
“validating the required header fields.”&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Example Log Data:&lt;/STRONG&gt;&lt;BR /&gt;
2017-05-25 23:22:31,422 INFO (vert.x-eventloop-thread-4) ?.: TID: b47d618c-a5fc-4d41-a7a2-b1c0fae15dc0 - Request is valid&lt;BR /&gt;
2017-05-25 23:22:31,422 INFO (vert.x-eventloop-thread-4) ?.: TID: b47d618c-a5fc-4d41-a7a2-b1c0fae15dc0 - validating the ur-content-checksum header field. value: IRHP9g6wxkouF35KI1DUmg==&lt;BR /&gt;
2017-05-25 23:22:31,422 INFO (vert.x-eventloop-thread-4) ?.: TID: b47d618c-a5fc-4d41-a7a2-b1c0fae15dc0 - Validated service ticket&lt;BR /&gt;
2017-05-25 23:22:31,422 INFO (vert.x-eventloop-thread-4) ?.: TID: b47d618c-a5fc-4d41-a7a2-b1c0fae15dc0 - validating the ur-user-name header field. value: dp_prod_loader&lt;BR /&gt;
2017-05-25 23:22:31,422 INFO (vert.x-eventloop-thread-4) ?.: TID: b47d618c-a5fc-4d41-a7a2-b1c0fae15dc0 - validating the ur-requesting-service header field. value: ur.java.client&lt;BR /&gt;
2017-05-25 23:22:31,422 INFO (vert.x-eventloop-thread-4) ?.: TID b47d618c-a5fc-4d41-a7a2-b1c0fae15dc0 - getAppActiveAndSecretResult: 2 ms&lt;BR /&gt;
2017-05-25 23:22:31,420 INFO (vert.x-eventloop-thread-4) ?.: TID b47d618c-a5fc-4d41-a7a2-b1c0fae15dc0 - getSystemSetupHandler: 1 ms&lt;BR /&gt;
2017-05-25 23:22:31,419 INFO (vert.x-eventloop-thread-4) ?.: TID: b47d618c-a5fc-4d41-a7a2-b1c0fae15dc0 - validating the ur-app-id header field. value: DIGITAL_PLATFORM&lt;BR /&gt;
2017-05-25 23:22:31,419 INFO (vert.x-eventloop-thread-4) ?.: TID: b47d618c-a5fc-4d41-a7a2-b1c0fae15dc0 - validating the ur-request-date header field. value: 2017-05-25 23:22:30.963 -0700&lt;BR /&gt;
2017-05-25 23:22:31,419 INFO (vert.x-eventloop-thread-4) ?.: TID: b47d618c-a5fc-4d41-a7a2-b1c0fae15dc0 - validating the required header fields.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[default]&lt;BR /&gt;
TRANSFORMS-null= setnull&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX = Request is valid|getAppActiveAndSecretResult|getSystemSetupHandler|validating the [\w-]+ header field|Validated service ticket&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:17:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-not-index-log-lines-that-have-these-2-phrases-in-them/m-p/313048#M58658</guid>
      <dc:creator>joesrepsol</dc:creator>
      <dc:date>2020-09-29T14:17:13Z</dc:date>
    </item>
  </channel>
</rss>

