<?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 Help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/579725#M202001</link>
    <description>&lt;P&gt;Your regex is matching against the _raw field. It it looking for a string in the _raw field which could be anywhere in the &lt;U&gt;_raw&lt;/U&gt; field matching the expression &lt;FONT color="#FF0000"&gt;user=&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;[a-z]{3,6}&lt;/FONT&gt;&lt;FONT color="#FF00FF"&gt;[a-z1-9]{1,2}&lt;/FONT&gt; , for example:&lt;/P&gt;&lt;P&gt;not&lt;FONT color="#FF0000"&gt;user=&lt;/FONT&gt;&lt;FONT color="#3366FF"&gt;abc&lt;/FONT&gt;&lt;FONT color="#FF00FF"&gt;1&lt;/FONT&gt;@nowhere&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;user=&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;sst&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF00FF"&gt;e&lt;/FONT&gt;venson6111&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All your examples match this expression&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jan 2022 08:07:24 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-01-02T08:07:24Z</dc:date>
    <item>
      <title>Regex Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/579715#M201994</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm attempting to use the regex command to filter out any records on the "user" field that do not match the written expression below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex sourcetype=traceability_log4net earliest=-10d 
| regex _raw="user=[a-z]{3,6}[a-z1-9]{1,2}" 
| table user&lt;/LI-CODE&gt;&lt;P&gt;Per the expression, there should not be any "user" records that exceed 8 characters. However, the non-matching values are not being filtered out.&lt;/P&gt;&lt;P&gt;"sstevenson6111", for example,&amp;nbsp; should theoretically be listed as "sstevens" per the expression.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="regex_user-table.PNG" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17396i19D093E12B6AA3A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="regex_user-table.PNG" alt="regex_user-table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm sure there's something blindingly obvious that I'm missing!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":flushed_face:"&gt;😳&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jan 2022 22:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/579715#M201994</guid>
      <dc:creator>bcanfield83</dc:creator>
      <dc:date>2022-01-01T22:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/579716#M201995</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;regex&lt;/FONT&gt; command passes what matches the specified expression.&amp;nbsp; To filter them out, use &lt;FONT face="courier new,courier"&gt;!=&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 00:46:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/579716#M201995</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-01-02T00:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/579723#M202000</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/171388"&gt;@bcanfield83&lt;/a&gt;&amp;nbsp;This may help you:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-write-a-regular-expression-to-filter-out-field-values/m-p/254358" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-write-a-regular-expression-to-filter-out-field-values/m-p/254358&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 05:50:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/579723#M202000</guid>
      <dc:creator>ashvinpandey</dc:creator>
      <dc:date>2022-01-02T05:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/579725#M202001</link>
      <description>&lt;P&gt;Your regex is matching against the _raw field. It it looking for a string in the _raw field which could be anywhere in the &lt;U&gt;_raw&lt;/U&gt; field matching the expression &lt;FONT color="#FF0000"&gt;user=&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;[a-z]{3,6}&lt;/FONT&gt;&lt;FONT color="#FF00FF"&gt;[a-z1-9]{1,2}&lt;/FONT&gt; , for example:&lt;/P&gt;&lt;P&gt;not&lt;FONT color="#FF0000"&gt;user=&lt;/FONT&gt;&lt;FONT color="#3366FF"&gt;abc&lt;/FONT&gt;&lt;FONT color="#FF00FF"&gt;1&lt;/FONT&gt;@nowhere&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;user=&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;sst&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF00FF"&gt;e&lt;/FONT&gt;venson6111&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All your examples match this expression&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jan 2022 08:07:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-Help/m-p/579725#M202001</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-02T08:07:24Z</dc:date>
    </item>
  </channel>
</rss>

