<?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 search for events that doesn't contain &amp;quot;-&amp;quot; in the url request in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-doesn-t-contain-quot-quot-in-the/m-p/316126#M162668</link>
    <description>&lt;P&gt;Probably several ways to skin this cat. You could try modifying where clause to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|where NOT request LIKE "%-%"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or just use search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|search NOT request="*-*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or use the regex command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|regex request!=".*-.*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 01 Mar 2018 00:31:13 GMT</pubDate>
    <dc:creator>worshamn</dc:creator>
    <dc:date>2018-03-01T00:31:13Z</dc:date>
    <item>
      <title>How to search for events that doesn't contain "-" in the url request</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-doesn-t-contain-quot-quot-in-the/m-p/316125#M162667</link>
      <description>&lt;P&gt;Hi i want to retrieve events that does not have "-" in the request url.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=con_jira [| gentimes start=-1 | eval source="/opt/atlassian/current/logs/access_log." + strftime(now(), "%F")  | return source] "GET /browse" | eval headers=split(_raw," ") | eval method=mvindex(headers,5) |eval request=mvindex(headers,6) | where request!="*-" | table request
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;sample Result:&lt;BR /&gt;
/browse/EPS -----&amp;gt; correct result&lt;BR /&gt;
/browse/ISPTEXAS-27534   ----&amp;gt; wrong result&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 22:55:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-doesn-t-contain-quot-quot-in-the/m-p/316125#M162667</guid>
      <dc:creator>jkirankumar1993</dc:creator>
      <dc:date>2018-02-28T22:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for events that doesn't contain "-" in the url request</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-doesn-t-contain-quot-quot-in-the/m-p/316126#M162668</link>
      <description>&lt;P&gt;Probably several ways to skin this cat. You could try modifying where clause to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|where NOT request LIKE "%-%"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or just use search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|search NOT request="*-*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or use the regex command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|regex request!=".*-.*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Mar 2018 00:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-doesn-t-contain-quot-quot-in-the/m-p/316126#M162668</guid>
      <dc:creator>worshamn</dc:creator>
      <dc:date>2018-03-01T00:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for events that doesn't contain "-" in the url request</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-doesn-t-contain-quot-quot-in-the/m-p/316127#M162669</link>
      <description>&lt;P&gt;hey try this run anywhere search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval request="/browse/EPS /browse/ISPTEXAS-27534 /browse/fsfsf-27534 /browse/abc /browse/edg /browse/abc-def" 
| makemv request 
| mvexpand request 
| where NOT like(request,"%-%")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your environment, you should write&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=con_jira 
    [| gentimes start=-1 
    | eval source="/opt/atlassian/current/logs/access_log." + strftime(now(), "%F") 
    | return source] "GET /browse" 
| eval headers=split(_raw," ") 
| eval method=mvindex(headers,5) 
| eval request=mvindex(headers,6) 
| table request 
| where NOT like(request,"%-%")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 06:44:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-doesn-t-contain-quot-quot-in-the/m-p/316127#M162669</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-03-01T06:44:57Z</dc:date>
    </item>
  </channel>
</rss>

