<?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 write a search to return events with a variable field value greater than a certain number? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131100#M35753</link>
    <description>&lt;P&gt;Did you already extract the average field?&lt;/P&gt;

&lt;P&gt;If not, go to Settings -&amp;gt; Fields -&amp;gt; Field Extractions -&amp;gt; New, enter "average" as name, fill in your sourcetype, and use this as inline extraction:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;average:(?&amp;lt;average&amp;gt;\d+\.?\d*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then try again. By default, Splunk extracts &lt;CODE&gt;key=value&lt;/CODE&gt; but not &lt;CODE&gt;key:value&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Sun, 23 Nov 2014 11:48:27 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-11-23T11:48:27Z</dc:date>
    <item>
      <title>How to write a search to return events with a variable field value greater than a certain number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131097#M35750</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've this log entry:&lt;/P&gt;

&lt;P&gt;"2014-11-22 02:42:10,545 .. - average:2.74425 , min:1.43 , max:4.007..."&lt;/P&gt;

&lt;P&gt;i want to create a search query that returns all log entries with "average &amp;gt; 5"&lt;/P&gt;

&lt;P&gt;i want to select the date of the log entry and the average value,&lt;/P&gt;

&lt;P&gt;can this be done? how can i do this?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Snabel&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2014 09:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131097#M35750</guid>
      <dc:creator>snabel</dc:creator>
      <dc:date>2014-11-23T09:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to return events with a variable field value greater than a certain number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131098#M35751</link>
      <description>&lt;P&gt;Sure:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=bar average&amp;gt;5 | table _time average
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Nov 2014 11:24:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131098#M35751</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-23T11:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to return events with a variable field value greater than a certain number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131099#M35752</link>
      <description>&lt;P&gt;it didn't work. i got:&lt;BR /&gt;
No results found.&lt;/P&gt;

&lt;P&gt;even though i have many log entries:&lt;BR /&gt;
  "2014-11-22 02:42:10,545 .. - average:5.34425 , min:1.43 , max:4.007..."&lt;BR /&gt;
"2014-11-22 02:42:10,545 .. - average:5.36425 , min:1.43 , max:4.007..."&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2014 11:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131099#M35752</guid>
      <dc:creator>snabel</dc:creator>
      <dc:date>2014-11-23T11:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to return events with a variable field value greater than a certain number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131100#M35753</link>
      <description>&lt;P&gt;Did you already extract the average field?&lt;/P&gt;

&lt;P&gt;If not, go to Settings -&amp;gt; Fields -&amp;gt; Field Extractions -&amp;gt; New, enter "average" as name, fill in your sourcetype, and use this as inline extraction:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;average:(?&amp;lt;average&amp;gt;\d+\.?\d*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then try again. By default, Splunk extracts &lt;CODE&gt;key=value&lt;/CODE&gt; but not &lt;CODE&gt;key:value&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2014 11:48:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131100#M35753</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-23T11:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to return events with a variable field value greater than a certain number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131101#M35754</link>
      <description>&lt;P&gt;Thanks it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 11:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131101#M35754</guid>
      <dc:creator>snabel</dc:creator>
      <dc:date>2014-11-25T11:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to return events with a variable field value greater than a certain number?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131102#M35755</link>
      <description>&lt;P&gt;i think i found it:&lt;BR /&gt;
language: (?[a-z][a-z]+-+[a-z][a-z]*) &lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 15:14:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-return-events-with-a-variable-field/m-p/131102#M35755</guid>
      <dc:creator>snabel</dc:creator>
      <dc:date>2014-11-25T15:14:53Z</dc:date>
    </item>
  </channel>
</rss>

