<?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 search for pattern and if condition greater than chart splunk search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-for-pattern-and-if-condition-greater-than-chart-splunk/m-p/496766#M138410</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I have a query that output below.&lt;/P&gt;

&lt;P&gt;loggerName="test"  DC=Test ENV=IT AppName=Test2 HostPort=9443 ClientIP=17.XXX.XX.XXX ClientAppId= ClientAppName= txnId=test1 sessionId=test2 method=test requestHeaders={x---geo-test=TEST, x--test=000, dsid=000188, postman-token=TEST, User-Agent=PostmanRuntime/7.20.1, mid=test x-gs-token=test altdsid=test, deflate, Content-Length=83, X-Real-IP=test, Content-Type=application/json, Cookie=SA-Locale=en_US; dslang=US-EN, Accept=&lt;EM&gt;/&lt;/EM&gt;,  Host=sse-ws-p189-test.apple.com ,no-cache,X-MMe-Client-Info=  x-mme-client-info=  X-MMe-Client-Info= &amp;lt;=Test OS;11.3;16G102&amp;gt; }&lt;/P&gt;

&lt;P&gt;Here I would like to capture/Search for  the 'Test OS;11.3'&lt;/P&gt;

&lt;P&gt;and make it to Test-OS=11.3 and count and chart the Test-OS values (Please note 11.3 is variable value)&lt;/P&gt;

&lt;P&gt;Then the I would like to chart the number of logs entries with Test-OS &amp;gt; 13.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2020 08:20:03 GMT</pubDate>
    <dc:creator>harkirat9712</dc:creator>
    <dc:date>2020-01-28T08:20:03Z</dc:date>
    <item>
      <title>search for pattern and if condition greater than chart splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-for-pattern-and-if-condition-greater-than-chart-splunk/m-p/496766#M138410</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I have a query that output below.&lt;/P&gt;

&lt;P&gt;loggerName="test"  DC=Test ENV=IT AppName=Test2 HostPort=9443 ClientIP=17.XXX.XX.XXX ClientAppId= ClientAppName= txnId=test1 sessionId=test2 method=test requestHeaders={x---geo-test=TEST, x--test=000, dsid=000188, postman-token=TEST, User-Agent=PostmanRuntime/7.20.1, mid=test x-gs-token=test altdsid=test, deflate, Content-Length=83, X-Real-IP=test, Content-Type=application/json, Cookie=SA-Locale=en_US; dslang=US-EN, Accept=&lt;EM&gt;/&lt;/EM&gt;,  Host=sse-ws-p189-test.apple.com ,no-cache,X-MMe-Client-Info=  x-mme-client-info=  X-MMe-Client-Info= &amp;lt;=Test OS;11.3;16G102&amp;gt; }&lt;/P&gt;

&lt;P&gt;Here I would like to capture/Search for  the 'Test OS;11.3'&lt;/P&gt;

&lt;P&gt;and make it to Test-OS=11.3 and count and chart the Test-OS values (Please note 11.3 is variable value)&lt;/P&gt;

&lt;P&gt;Then the I would like to chart the number of logs entries with Test-OS &amp;gt; 13.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 08:20:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-for-pattern-and-if-condition-greater-than-chart-splunk/m-p/496766#M138410</guid>
      <dc:creator>harkirat9712</dc:creator>
      <dc:date>2020-01-28T08:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: search for pattern and if condition greater than chart splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-for-pattern-and-if-condition-greater-than-chart-splunk/m-p/496767#M138411</link>
      <description>&lt;P&gt;Unless i am missing something, I cant see &lt;CODE&gt;Test OS;11.3&lt;/CODE&gt; in your event?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 14:13:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-for-pattern-and-if-condition-greater-than-chart-splunk/m-p/496767#M138411</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-01-28T14:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: search for pattern and if condition greater than chart splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-for-pattern-and-if-condition-greater-than-chart-splunk/m-p/496768#M138412</link>
      <description>&lt;P&gt;extract check:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="loggerName=\"test\" DC=Test ENV=IT AppName=Test2 HostPort=9443 ClientIP=17.XXX.XX.XXX ClientAppId= ClientAppName= txnId=test1 sessionId=test2 method=test requestHeaders={x---geo-test=TEST, x--test=000, dsid=000188, postman-token=TEST, User-Agent=PostmanRuntime/7.20.1, mid=test x-gs-token=test altdsid=test, deflate, Content-Length=83, X-Real-IP=test, Content-Type=application/json, Cookie=SA-Locale=en_US; dslang=US-EN, Accept=/, Host=sse-ws-p189-test.apple.com ,no-cache,X-MMe-Client-Info= x-mme-client-info= X-MMe-Client-Info= &amp;lt;=Test OS;11.3;16G102&amp;gt; }"
 | rex "Test OS;(?&amp;lt;Test_OS&amp;gt;[\d.]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;recommend:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search
| rex "Test OS;(?&amp;lt;Test_OS&amp;gt;[\d.]+)"
| stats count by Test_OS
| where Test_OS &amp;gt; 13
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jan 2020 17:37:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-for-pattern-and-if-condition-greater-than-chart-splunk/m-p/496768#M138412</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-28T17:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: search for pattern and if condition greater than chart splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-for-pattern-and-if-condition-greater-than-chart-splunk/m-p/496769#M138413</link>
      <description>&lt;P&gt;Added. Pls check.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 19:23:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-for-pattern-and-if-condition-greater-than-chart-splunk/m-p/496769#M138413</guid>
      <dc:creator>harkirat9712</dc:creator>
      <dc:date>2020-01-28T19:23:57Z</dc:date>
    </item>
  </channel>
</rss>

