<?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 to search for word in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647917#M224223</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244855"&gt;@Nawab&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;because \w means alphabetical chars, so also numbers.&lt;/P&gt;&lt;P&gt;In this case, you have to use the solution from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2023 13:14:26 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-06-22T13:14:26Z</dc:date>
    <item>
      <title>Can we use regex to search for word?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647897#M224215</link>
      <description>&lt;P&gt;let's suppose I have a set of the log from Windows authentication and I want to search if user field does not match a specific pattren, can we use regex to do that in splunk.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 17:45:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647897#M224215</guid>
      <dc:creator>Nawab</dc:creator>
      <dc:date>2023-06-22T17:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to search for word</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647899#M224216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244855"&gt;@Nawab&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can use the regex command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.5/SearchReference/Regex" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.5/SearchReference/Regex&lt;/A&gt;) or, if you have to use only a word, you can use the simple search of Splunk: Splunk is a search engine.&lt;/P&gt;&lt;P&gt;Could you better describe what you want to search?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 11:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647899#M224216</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-22T11:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to search for word</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647902#M224218</link>
      <description>&lt;P&gt;So lets suppose there is a naming convention for user names in an organization&lt;/P&gt;&lt;P&gt;user1=foo.baar1&lt;/P&gt;&lt;P&gt;user2=foo.bar2&lt;/P&gt;&lt;P&gt;user3=foo12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now user convention is firstname.secondname+number&lt;BR /&gt;and now i want to whitelist this so this convention and alert when a user without same regex is find will trigger alert&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 11:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647902#M224218</guid>
      <dc:creator>Nawab</dc:creator>
      <dc:date>2023-06-22T11:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to search for word</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647904#M224219</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244855"&gt;@Nawab&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you want to have as result only the third value, is it correct?&lt;/P&gt;&lt;P&gt;if this is your requirement, you could use the following regex:&lt;/P&gt;&lt;P&gt;In other words:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval user="foo.baar1"
| append [ | makeresults | eval user="foo.bar2" ]
| append [ | makeresults | eval user="foo12" ]
| table _time  user
| regex user!="^\w+\.\w+\d"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 11:49:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647904#M224219</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-22T11:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to search for word</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647908#M224220</link>
      <description>&lt;P&gt;Your query is working if data is created using this query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed some values&amp;nbsp;&lt;BR /&gt;now user names are&amp;nbsp;&lt;/P&gt;&lt;P&gt;| makeresults | eval user="abc1234"&lt;BR /&gt;| append [ | makeresults | eval user="xyz" ]&lt;BR /&gt;| append [ | makeresults | eval user="abc0-abr123" ]&lt;BR /&gt;| table _time user&lt;BR /&gt;| regex user!="^\w+"&lt;BR /&gt;&lt;BR /&gt;here I want to remove if the user only has letters but no number&lt;BR /&gt;why doesn't it works&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 12:02:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647908#M224220</guid>
      <dc:creator>Nawab</dc:creator>
      <dc:date>2023-06-22T12:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to search for word</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647909#M224221</link>
      <description>&lt;LI-CODE lang="markup"&gt;| regex user!="^[a-zA-Z]+$"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Jun 2023 12:31:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647909#M224221</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-22T12:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to search for word</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647910#M224222</link>
      <description>&lt;P&gt;Thanks&amp;nbsp; its working&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 12:33:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647910#M224222</guid>
      <dc:creator>Nawab</dc:creator>
      <dc:date>2023-06-22T12:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to search for word</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647917#M224223</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244855"&gt;@Nawab&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;because \w means alphabetical chars, so also numbers.&lt;/P&gt;&lt;P&gt;In this case, you have to use the solution from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 13:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-use-regex-to-search-for-word/m-p/647917#M224223</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-22T13:14:26Z</dc:date>
    </item>
  </channel>
</rss>

