<?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: Field results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322461#M161813</link>
    <description>&lt;P&gt;Thanks a lot for your response, the result looks like the seconde table &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; Perfect&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2018 07:28:55 GMT</pubDate>
    <dc:creator>katouoma</dc:creator>
    <dc:date>2018-04-09T07:28:55Z</dc:date>
    <item>
      <title>Field results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322456#M161808</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;
I'm new in Splunk and I want some help from you (please).&lt;/P&gt;

&lt;P&gt;Here is an image to explain what i'm trying to do:&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/236666-splunk-results.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;For the field6 i have (for example) one code with 4 results in field5 with their time in field2. So i want to calculate the time (field2) for each 2 results of one code (&lt;STRONG&gt;qr.webservice.server.operation.response  qr.webservice.server.operation.request&lt;/STRONG&gt;) and (&lt;STRONG&gt;qr.ctg.GE01.response  qr.ctg.GE01.request&lt;/STRONG&gt;).&lt;/P&gt;

&lt;P&gt;Here is what i've done until now:&lt;BR /&gt;
    sourcetype="bigdata:pf:itoa:frontend:java:qr" host=S00VA9939084 &lt;BR /&gt;
    field5="qr*" AND field5!="qr.clientsweetdev.person.context" AND field6="H*"&lt;BR /&gt;
    | table field6 , field5 , field2&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:56:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322456#M161808</guid>
      <dc:creator>katouoma</dc:creator>
      <dc:date>2020-09-29T18:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Field results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322457#M161809</link>
      <description>&lt;P&gt;What do you want to calculate exactly? It would be better if  give us the expected output table as well for input table.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 13:08:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322457#M161809</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-04-06T13:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322458#M161810</link>
      <description>&lt;P&gt;I want to calculate the duration between:&lt;BR /&gt;
 - qr.webservice.server.operation.response &amp;amp; qr.webservice.server.operation.request&lt;BR /&gt;
 - qr.ctg.GE01.response &amp;amp; qr.ctg.GE01.request&lt;BR /&gt;
Here is an example:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4724i83EE5F06A3D3F407/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I don't know if it's possible !&lt;/P&gt;

&lt;P&gt;Or even like this:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4725i60164BB99D344118/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 14:09:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322458#M161810</guid>
      <dc:creator>katouoma</dc:creator>
      <dc:date>2018-04-06T14:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Field results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322459#M161811</link>
      <description>&lt;P&gt;Try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;･･･
| table field6 , field5 , field2
| eval  field5=rtrim(field5,".response"),field5=rtrim(field5,".request")
| stats min(field2) as start,max(field2) as end by field6 ,field5
| eval dur=strptime(end,"%H:%M:%S,%3Q")-strptime(start,"%H:%M:%S,%3Q")
| table field6 , field5 , dur
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Apr 2018 14:40:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322459#M161811</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-04-06T14:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Field results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322460#M161812</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;

&lt;P&gt;try this &lt;STRONG&gt;[TESTED]&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your query so far&amp;gt;| table field6 , field5 , field2 
|  rex field=field5 "qr\.(?&amp;lt;new&amp;gt;[^\.]+)" | eval field2=strptime(field2,"%H:%M:%S,%3Q")  | stats min(field2) as request,max(field2) as response by field6 ,new 
|  eval dur=response-request 
|  chart values(dur) over field6 by new
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give result in seconds you may convert it according your need to minute or hour in &lt;CODE&gt;|eval dur=&lt;/CODE&gt; using conversion logic&lt;BR /&gt;
let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 15:13:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322460#M161812</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-04-06T15:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322461#M161813</link>
      <description>&lt;P&gt;Thanks a lot for your response, the result looks like the seconde table &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; Perfect&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 07:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322461#M161813</guid>
      <dc:creator>katouoma</dc:creator>
      <dc:date>2018-04-09T07:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Field results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322462#M161814</link>
      <description>&lt;P&gt;Thank you @mayurr98, this is exactly what i'm looking for. &lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4726iF7FBF7AB7DD750A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
However, i want to alert for example my manager if &lt;STRONG&gt;ctg&lt;/STRONG&gt; or &lt;STRONG&gt;webservice&lt;/STRONG&gt; is greater than 3s, he will receive an email with the line concerned.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322462#M161814</guid>
      <dc:creator>katouoma</dc:creator>
      <dc:date>2018-04-09T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322463#M161815</link>
      <description>&lt;P&gt;Yes you can rename it using rename command.also if you want to add any condition then you can do something like this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rename webservice as WebService ctg as CTG | where WebService&amp;gt;3 OR CTG&amp;gt;3&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Append this at the end of the search &lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322463#M161815</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-04-09T14:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Field results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322464#M161816</link>
      <description>&lt;P&gt;I'm trying to send an email to alert my manager if XEROX or SICLID is greater than 2s, but he didn't receive anything so i think i made a mistake in the trigger condition:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4727iA5728938B8AB319D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4728i8638769FACA7F4B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 08:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-results/m-p/322464#M161816</guid>
      <dc:creator>katouoma</dc:creator>
      <dc:date>2018-04-10T08:15:29Z</dc:date>
    </item>
  </channel>
</rss>

