<?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 How to display the time of one search in the final result when we have another subsearch inside of it? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213587#M62645</link>
    <description>&lt;P&gt;Below is my search.&lt;/P&gt;

&lt;P&gt;What I need is to have the time related to that error also saved(Timen) and then shown in the final result which has result of another subsearch.&lt;/P&gt;

&lt;P&gt;When I run it, I am getting the value of only FIELDNAME1 and not Timen.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index!=_internal "error" " |eval Timen=strftime(_time,"%m/%d/%y %T")|   accum Timen|                  rex "(?i)text&amp;gt;(?P[^&amp;lt;]+)" | dedup FIELDNAME | map search="search index!=_internal $FIELDNAME$" | search "error1 " |rex "(?i)text1=(?P[^]]+)" | rex "(?i)text2=(?P[^]]+)" |  eval Time=strftime(_time,"%m/%d/%y %T")| table FIELDNAME1  Time Timen 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 05 Aug 2016 19:08:22 GMT</pubDate>
    <dc:creator>Vignesh5r</dc:creator>
    <dc:date>2016-08-05T19:08:22Z</dc:date>
    <item>
      <title>How to display the time of one search in the final result when we have another subsearch inside of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213587#M62645</link>
      <description>&lt;P&gt;Below is my search.&lt;/P&gt;

&lt;P&gt;What I need is to have the time related to that error also saved(Timen) and then shown in the final result which has result of another subsearch.&lt;/P&gt;

&lt;P&gt;When I run it, I am getting the value of only FIELDNAME1 and not Timen.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index!=_internal "error" " |eval Timen=strftime(_time,"%m/%d/%y %T")|   accum Timen|                  rex "(?i)text&amp;gt;(?P[^&amp;lt;]+)" | dedup FIELDNAME | map search="search index!=_internal $FIELDNAME$" | search "error1 " |rex "(?i)text1=(?P[^]]+)" | rex "(?i)text2=(?P[^]]+)" |  eval Time=strftime(_time,"%m/%d/%y %T")| table FIELDNAME1  Time Timen 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Aug 2016 19:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213587#M62645</guid>
      <dc:creator>Vignesh5r</dc:creator>
      <dc:date>2016-08-05T19:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the time of one search in the final result when we have another subsearch inside of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213588#M62646</link>
      <description>&lt;P&gt;The field names are stripped off in the question, making is difficult to understand. Apart from correcting that, could you also, describe your requirement here in little more details?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 19:55:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213588#M62646</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-05T19:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the time of one search in the final result when we have another subsearch inside of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213589#M62647</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; index!=_internal "error" " |eval Timen=strftime(_time,"%m/%d/%y %T")| rex "(?i)text&amp;gt;(?P[^&amp;lt;]+)" | dedup FIELDNAME | map search="search index!=_internal $FIELDNAME$" | search "error1 " |rex "(?i)text1=(?P[^]]+)" |   eval Time=strftime(_time,"%m/%d/%y %T")| table FIELDNAME1  Time Timen
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to display the field &lt;STRONG&gt;Timen&lt;/STRONG&gt; in my results. Currently it displays only &lt;STRONG&gt;FIELDNAME1&lt;/STRONG&gt; and &lt;STRONG&gt;Time&lt;/STRONG&gt; and not Timen&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 20:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213589#M62647</guid>
      <dc:creator>Vignesh5r</dc:creator>
      <dc:date>2016-08-05T20:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the time of one search in the final result when we have another subsearch inside of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213590#M62648</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index!=_internal "error" |eval Timen=strftime(_time,"%m/%d/%y %T")| rex "(?i)text\&amp;gt;(?P&amp;lt;FIELDNAME&amp;gt;[^\&amp;lt;]+)" | dedup FIELDNAME | table Timen FIELDNAME | map search="search index!=_internal $FIELDNAME$ | eval Timen=\"$Timen$\"" | search "error1 " |rex "(?i)text1=(?P&amp;lt;FIELDNAME1&amp;gt;[^\]]+)" | eval Time=strftime(_time,"%m/%d/%y %T")| table FIELDNAME1 Time Timen
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Aug 2016 20:08:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213590#M62648</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-05T20:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the time of one search in the final result when we have another subsearch inside of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213591#M62649</link>
      <description>&lt;P&gt;It doesnt work. It displays $Timen  and not the value&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 20:37:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213591#M62649</guid>
      <dc:creator>Vignesh5r</dc:creator>
      <dc:date>2016-08-05T20:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the time of one search in the final result when we have another subsearch inside of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213592#M62650</link>
      <description>&lt;P&gt;Oops, missed a $ sign there. Try now.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 20:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213592#M62650</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-05T20:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the time of one search in the final result when we have another subsearch inside of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213593#M62651</link>
      <description>&lt;P&gt;Perfect. It works. Thanks a lot for your kind help on this!!! &lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 20:49:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213593#M62651</guid>
      <dc:creator>Vignesh5r</dc:creator>
      <dc:date>2016-08-05T20:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the time of one search in the final result when we have another subsearch inside of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213594#M62652</link>
      <description>&lt;P&gt;One more question. What if i have to display the FIELDNAME along with Timen?  &lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 20:52:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213594#M62652</guid>
      <dc:creator>Vignesh5r</dc:creator>
      <dc:date>2016-08-05T20:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the time of one search in the final result when we have another subsearch inside of it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213595#M62653</link>
      <description>&lt;P&gt;Okay i found that this doesnt actually provide the result i am expecting. Let me correct my quetion. I need to know the time of the exact FIELDNAME which matches with the error1 field. (There can be multiple results for that fieldname initially and the timen is showing the latest one for that)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 21:13:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-of-one-search-in-the-final-result-when/m-p/213595#M62653</guid>
      <dc:creator>Vignesh5r</dc:creator>
      <dc:date>2016-08-05T21:13:50Z</dc:date>
    </item>
  </channel>
</rss>

