<?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: Is it possible to name the main search and the subsearch to distinguish which search produced which values in a table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255693#M76563</link>
    <description>&lt;P&gt;You cannot name a search by you can achieve what you're looking for by renaming the fields in each of the searches, like so.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="1.1.1.1" VPN=A | eval searchA_time=_time | join IP [search host="1.1.1.1" VPN=b | eval searchB_time=_time | fields searchB_time ] table searchA_time searchB_time username
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 May 2016 12:18:55 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-05-17T12:18:55Z</dc:date>
    <item>
      <title>Is it possible to name the main search and the subsearch to distinguish which search produced which values in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255692#M76562</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;

&lt;P&gt;I have a following search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="1.1.1.1" VPN=A | join IP [search host="1.1.1.1" VPN=b] table _time,username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;May I know is it possible give a name to the main search and sub search, such as searchA and searchB. so when I create a table, I can call out searchA._time and searchB._time&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:44:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255692#M76562</guid>
      <dc:creator>peterchow</dc:creator>
      <dc:date>2020-09-29T09:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to name the main search and the subsearch to distinguish which search produced which values in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255693#M76563</link>
      <description>&lt;P&gt;You cannot name a search by you can achieve what you're looking for by renaming the fields in each of the searches, like so.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="1.1.1.1" VPN=A | eval searchA_time=_time | join IP [search host="1.1.1.1" VPN=b | eval searchB_time=_time | fields searchB_time ] table searchA_time searchB_time username
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 May 2016 12:18:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255693#M76563</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-05-17T12:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to name the main search and the subsearch to distinguish which search produced which values in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255694#M76564</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;You can try something like this to extract the _time value from main search or sub search .&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="1.1.1.1" VPN=A | eval OuterTime=_time| join IP [search host="1.1.1.1" VPN=b | eval InnerTime=_time ] table _time,username
OuterTime InnerTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For such requirement, I would prefer to use stats command as it is much faster. &lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 12:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255694#M76564</guid>
      <dc:creator>badrinath_itrs</dc:creator>
      <dc:date>2016-05-17T12:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to name the main search and the subsearch to distinguish which search produced which values in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255695#M76565</link>
      <description>&lt;P&gt;thanks a lot. It seems work but the time show sequence number. do you know why&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 07:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255695#M76565</guid>
      <dc:creator>peterchow</dc:creator>
      <dc:date>2016-05-18T07:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to name the main search and the subsearch to distinguish which search produced which values in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255696#M76566</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;The time format will be epoch timestamp and you need to convert to Human readable format using below command. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search .. |convert timeformat="%Y %b %d %H:%M:%S:%3N" ctime(OuterTime) ctime(InnerTime)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this resolves your query.&lt;/P&gt;

&lt;P&gt;Additionally  if this solves your query, please mark this thread as answered. &lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 23:29:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255696#M76566</guid>
      <dc:creator>badrinath_itrs</dc:creator>
      <dc:date>2016-05-18T23:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to name the main search and the subsearch to distinguish which search produced which values in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255697#M76567</link>
      <description>&lt;P&gt;It works. Thanks a lot&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 02:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-name-the-main-search-and-the-subsearch-to/m-p/255697#M76567</guid>
      <dc:creator>peterchow</dc:creator>
      <dc:date>2016-05-19T02:37:20Z</dc:date>
    </item>
  </channel>
</rss>

