<?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: splunk SPL command to filter events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215693#M187975</link>
    <description>&lt;P&gt;Yes. Thank You&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2016 06:23:13 GMT</pubDate>
    <dc:creator>vw5qb73</dc:creator>
    <dc:date>2016-02-24T06:23:13Z</dc:date>
    <item>
      <title>splunk SPL command to filter events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215687#M187969</link>
      <description>&lt;P&gt;Hi - I am indexing a JMX GC log in splunk. It has following entries&lt;/P&gt;

&lt;P&gt;29800.962: [Full GC 29800.962: [CMS29805.756: [CMS-concurrent-mark: 8.059/8.092 secs] [Times: &lt;STRONG&gt;user=11.76&lt;/STRONG&gt; sys=0.40, real=8.09 secs] &lt;BR /&gt;
host = APP01 source = /export/home/jboss/jboss-4.3.0/server/main/log/gcverbose.10645.log sourcetype = gc_log_abc&lt;/P&gt;

&lt;P&gt;Currently i use sourcetype=gc_log_bizx FULL "user=30*" to filter events where  user time is taking 30s&lt;/P&gt;

&lt;P&gt;I need to refine this query further to get all events where user= value is more than 30s&lt;/P&gt;

&lt;P&gt;Can any one help me?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:53:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215687#M187969</guid>
      <dc:creator>vw5qb73</dc:creator>
      <dc:date>2020-09-29T08:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: splunk SPL command to filter events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215688#M187970</link>
      <description>&lt;P&gt;try like :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=gc_log_bizx FULL "user&amp;gt;30*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2016 09:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215688#M187970</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2016-02-23T09:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: splunk SPL command to filter events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215689#M187971</link>
      <description>&lt;P&gt;No, it didnt worked. Pls note events can be like&lt;/P&gt;

&lt;P&gt;[Times: &lt;STRONG&gt;user=11.76&lt;/STRONG&gt; sys=0.40, real=8.09 secs] &lt;BR /&gt;
[Times: &lt;STRONG&gt;user=30.76&lt;/STRONG&gt; sys=0.40, real=8.09 secs] &lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 09:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215689#M187971</guid>
      <dc:creator>vw5qb73</dc:creator>
      <dc:date>2016-02-23T09:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: splunk SPL command to filter events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215690#M187972</link>
      <description>&lt;P&gt;If Splunk is extracting those key value pairs automatically you can simply do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=gc_log_bizx FULL user&amp;gt;30
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If not, then extract the user field first and then use it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=gc_log_bizx FULL
| rex field=_raw "user=(?&amp;lt;user&amp;gt;[\d\.]+)"
| where user &amp;gt; 30
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2016 09:54:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215690#M187972</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-02-23T09:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: splunk SPL command to filter events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215691#M187973</link>
      <description>&lt;P&gt;Thank You..this is what i was looking for..Do you know any splunk doc that talks about rules to extract field values using regex?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 10:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215691#M187973</guid>
      <dc:creator>vw5qb73</dc:creator>
      <dc:date>2016-02-23T10:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: splunk SPL command to filter events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215692#M187974</link>
      <description>&lt;P&gt;Any of the following might help:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/Search/Extractfieldswithsearchcommands"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/Search/Extractfieldswithsearchcommands&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/Knowledge/Managesearch-timefieldextractions"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/Knowledge/Managesearch-timefieldextractions&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/Knowledge/ExtractfieldsinteractivelywithIFX&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 10:11:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215692#M187974</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-02-23T10:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: splunk SPL command to filter events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215693#M187975</link>
      <description>&lt;P&gt;Yes. Thank You&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 06:23:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215693#M187975</guid>
      <dc:creator>vw5qb73</dc:creator>
      <dc:date>2016-02-24T06:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: splunk SPL command to filter events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215694#M187976</link>
      <description>&lt;P&gt;Hi -&lt;/P&gt;

&lt;P&gt;how do i extract these fields?&lt;/P&gt;

&lt;P&gt;[GC 44625.964: [ParNew: 929756K-&amp;gt;161792K(1071552K), 0.0821116 secs] 10302433K-&amp;gt;9534469K(13121984K), 0.0823159 secs] [Times: user=0.63 sys=0.00, real=0.08 secs]&lt;/P&gt;

&lt;P&gt;10302433K – JVM_HeapUsedBeforeGC&lt;BR /&gt;
9534469K - JVM_HeapUsedAfterGC&lt;BR /&gt;
13121984K - JVM_HeapSize&lt;BR /&gt;
0.0823159 secs - JVM_GCTimeTaken&lt;/P&gt;

&lt;P&gt;Can you help?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215694#M187976</guid>
      <dc:creator>vw5qb73</dc:creator>
      <dc:date>2020-09-29T08:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: splunk SPL command to filter events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215695#M187977</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;(?msi)\[GC\s+[\d\.]+:\s+\[ParNew:[^\]]+\]\s+(?&amp;lt;JVM_HeapUsedBeforeGC&amp;gt;[\d\.KM]+)-&amp;gt;(?&amp;lt;JVM_HeapUsedAfterGC&amp;gt;[\d\.KM]+)\((?&amp;lt;JVM_HeapSize&amp;gt;[\d\.KM]+)\),\s+(?&amp;lt;JVM_GCTimeTaken&amp;gt;[\d\.]+ secs)\]\s+\[Times: user=(?&amp;lt;user&amp;gt;[\d\.]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See this: &lt;A href="https://regex101.com/r/bO9iP8/1"&gt;https://regex101.com/r/bO9iP8/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 09:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215695#M187977</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-02-26T09:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: splunk SPL command to filter events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215696#M187978</link>
      <description>&lt;P&gt;Is it using rex command? i tried above in splunk search and got error&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 09:56:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215696#M187978</guid>
      <dc:creator>vw5qb73</dc:creator>
      <dc:date>2016-02-26T09:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: splunk SPL command to filter events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215697#M187979</link>
      <description>&lt;P&gt;Yeah, I only pasted the regular expression. You can use it with rex but the important bit is that you can rely on resources such as &lt;A href="https://regex101.com/r/bO9iP8/1"&gt;regex101&lt;/A&gt; to test this out very easily.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw "(?msi)\[GC\s+[\d\.]+:\s+\[ParNew:[^\]]+\]\s+(?&amp;lt;JVM_HeapUsedBeforeGC&amp;gt;[\d\.KM]+)-&amp;gt;(?&amp;lt;JVM_HeapUsedAfterGC&amp;gt;[\d\.KM]+)\((?&amp;lt;JVM_HeapSize&amp;gt;[\d\.KM]+)\),\s+(?&amp;lt;JVM_GCTimeTaken&amp;gt;[\d\.]+ secs)\]\s+\[Times: user=(?&amp;lt;user&amp;gt;[\d\.]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Feb 2016 10:05:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-SPL-command-to-filter-events/m-p/215697#M187979</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-02-26T10:05:48Z</dc:date>
    </item>
  </channel>
</rss>

