<?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: Wildcards in the middle and end of a string in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Wildcards-in-the-middle-and-end-of-a-string/m-p/397319#M6778</link>
    <description>&lt;P&gt;try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=DBG_SYS sourcetype=DBG_SYS msg="Shelf 1 congestion, resource cps level 2." 
      | append 
          [| search index=DBG_SYS sourcetype=DBG_SYS 
          | regex msg="Shelf 1 slot\s(\d{1,2})\scongestion, resource cpu level\s(\d{1,2})" ] 
          | rex field=msg "cpu level+\s(?&amp;lt;level&amp;gt;\d+)" 
          | rex field=msg "cps level+\s(?&amp;lt;level&amp;gt;\d+)" 
          | where level&amp;gt;0 
          | eval local_date_hour=strftime(_time,"%H") 
          | stats by local_date_hour host msg 
          | table local_date_hour host msg count(code) 
          | rename count(code) as hits 
      | rename local_date_hour as Hour 
      | sort by Hour
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Jan 2019 22:30:43 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2019-01-11T22:30:43Z</dc:date>
    <item>
      <title>Wildcards in the middle and end of a string</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Wildcards-in-the-middle-and-end-of-a-string/m-p/397315#M6774</link>
      <description>&lt;P&gt;&lt;CODE&gt;search index=DBG_SYS sourcetype=DBG_SYS msg="Shelf 1 congestion, resource cps level 2." OR msg="Shelf 1 slot * congestion, resource cpu level *"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I have a search that works, but I am getting warnings about having Wildcards in the middle of a string.&lt;BR /&gt;
 Not sure how to avoid this since Slot numbers can be 0-99 and the level can be 0-99 also.&lt;BR /&gt;
Is it possible to look for &lt;BR /&gt;
Shelf 1 slot (any integer) congestion, resource cpu level (any integer)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 21:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Wildcards-in-the-middle-and-end-of-a-string/m-p/397315#M6774</guid>
      <dc:creator>jamesfdally</dc:creator>
      <dc:date>2019-01-11T21:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in the middle and end of a string</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Wildcards-in-the-middle-and-end-of-a-string/m-p/397316#M6775</link>
      <description>&lt;P&gt;Hi @jamesfdally&lt;/P&gt;

&lt;P&gt;Try like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|regex msg="Shelf 1 slot\s(\d{1,2})\scongestion, resource cpu level\s(\d{1,2})" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jan 2019 21:33:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Wildcards-in-the-middle-and-end-of-a-string/m-p/397316#M6775</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-01-11T21:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in the middle and end of a string</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Wildcards-in-the-middle-and-end-of-a-string/m-p/397317#M6776</link>
      <description>&lt;P&gt;I do not understand where I should put this. Should I keep my original search and add this? Then I will still get the same warning on my scheduled search every day. I have an OR statement in my search also so I need more information please.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 21:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Wildcards-in-the-middle-and-end-of-a-string/m-p/397317#M6776</guid>
      <dc:creator>jamesfdally</dc:creator>
      <dc:date>2019-01-11T21:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in the middle and end of a string</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Wildcards-in-the-middle-and-end-of-a-string/m-p/397318#M6777</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=DBG_SYS
sourcetype=DBG_SYS 
msg="Shelf 1 congestion, resource cps level 2." 
OR msg="Shelf 1 slot * congestion, resource cpu level *" 
    | rex field=msg "cpu level+\s(?&amp;lt;level&amp;gt;\d+)" 
    | rex field=msg "cps level+\s(?&amp;lt;level&amp;gt;\d+)" 
    | where level&amp;gt;0 
    | eval local_date_hour=strftime(_time,"%H") 
    | stats by local_date_hour host msg 
    | table local_date_hour host msg count(code) 
    | rename count(code) as hits ] 
| rename local_date_hour as Hour 
| sort by Hour
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jan 2019 22:03:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Wildcards-in-the-middle-and-end-of-a-string/m-p/397318#M6777</guid>
      <dc:creator>jamesfdally</dc:creator>
      <dc:date>2019-01-11T22:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in the middle and end of a string</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Wildcards-in-the-middle-and-end-of-a-string/m-p/397319#M6778</link>
      <description>&lt;P&gt;try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=DBG_SYS sourcetype=DBG_SYS msg="Shelf 1 congestion, resource cps level 2." 
      | append 
          [| search index=DBG_SYS sourcetype=DBG_SYS 
          | regex msg="Shelf 1 slot\s(\d{1,2})\scongestion, resource cpu level\s(\d{1,2})" ] 
          | rex field=msg "cpu level+\s(?&amp;lt;level&amp;gt;\d+)" 
          | rex field=msg "cps level+\s(?&amp;lt;level&amp;gt;\d+)" 
          | where level&amp;gt;0 
          | eval local_date_hour=strftime(_time,"%H") 
          | stats by local_date_hour host msg 
          | table local_date_hour host msg count(code) 
          | rename count(code) as hits 
      | rename local_date_hour as Hour 
      | sort by Hour
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jan 2019 22:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Wildcards-in-the-middle-and-end-of-a-string/m-p/397319#M6778</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-01-11T22:30:43Z</dc:date>
    </item>
  </channel>
</rss>

