<?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 Choose either of the available field from multiple queries in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Choose-either-of-the-available-field-from-multiple-queries/m-p/499956#M139256</link>
    <description>&lt;P&gt;I am trying to search on two indices. Both of them have a field which represents time. But in one index, that field is labelled Ta, while in the other index it's labelled Tt. After the result of the search, I wish to run a stats p95 command on that field. Since either, both fields might turn up in the result, I want it to give me stat p95 for both if both fields are available or just whichever one is returned. Is there a way to do this? Any example will be of great help.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2020 07:15:50 GMT</pubDate>
    <dc:creator>arnavzz</dc:creator>
    <dc:date>2020-03-25T07:15:50Z</dc:date>
    <item>
      <title>Choose either of the available field from multiple queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Choose-either-of-the-available-field-from-multiple-queries/m-p/499956#M139256</link>
      <description>&lt;P&gt;I am trying to search on two indices. Both of them have a field which represents time. But in one index, that field is labelled Ta, while in the other index it's labelled Tt. After the result of the search, I wish to run a stats p95 command on that field. Since either, both fields might turn up in the result, I want it to give me stat p95 for both if both fields are available or just whichever one is returned. Is there a way to do this? Any example will be of great help.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 07:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Choose-either-of-the-available-field-from-multiple-queries/m-p/499956#M139256</guid>
      <dc:creator>arnavzz</dc:creator>
      <dc:date>2020-03-25T07:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Choose either of the available field from multiple queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Choose-either-of-the-available-field-from-multiple-queries/m-p/499957#M139257</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=A OR index=B
| eval common=coalesce(Ta,Tt)
| stats p95(common) dc(index) as flag by common
| where flag &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 05 Apr 2020 00:19:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Choose-either-of-the-available-field-from-multiple-queries/m-p/499957#M139257</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-05T00:19:22Z</dc:date>
    </item>
  </channel>
</rss>

