<?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: can multiple indexes be searched for different fields? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/can-multiple-indexes-be-searched-for-different-fields/m-p/484880#M8674</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;this can be done in multiple ways.&lt;BR /&gt;
- append - &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Append"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Append&lt;/A&gt;&lt;BR /&gt;
it appends the results from the subsearch to the mail search as events&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;appendcols - &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Appendcols"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Appendcols&lt;/A&gt;
it will add the columns from the subsearch to the main search. The first subsearch result is merged with the first main result, the second subsearch result is merged with the second main result, and so on, without any relation.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;you will get the better idea by going through the examples given on the reference sites.&lt;/P&gt;

&lt;P&gt;accept &amp;amp; up-vote the answer if it helps&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 14:22:08 GMT</pubDate>
    <dc:creator>gaurav_maniar</dc:creator>
    <dc:date>2020-03-02T14:22:08Z</dc:date>
    <item>
      <title>can multiple indexes be searched for different fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/can-multiple-indexes-be-searched-for-different-fields/m-p/484878#M8672</link>
      <description>&lt;P&gt;Can splunk search for different indexes that contain different fields, and present that data out in readable format?&lt;/P&gt;

&lt;P&gt;I am trying to use one search that looks in index A, for specific fields,  then another search for index B, looking for different fields than are contained in index A.&lt;/P&gt;

&lt;P&gt;This is in an attempt to give out a daily report that can give us a single email showing us different tables on a single email of:&lt;/P&gt;

&lt;P&gt;cpu percentage&lt;BR /&gt;
drive full percentage&lt;BR /&gt;
status of an application (running/stopped)&lt;BR /&gt;
etc.&lt;/P&gt;

&lt;P&gt;Or is there perhaps a way that splunk can merge separate reports into one, and email it out in the message body?&lt;/P&gt;

&lt;P&gt;I will continue looking, but any help is appreciated.  thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:51:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/can-multiple-indexes-be-searched-for-different-fields/m-p/484878#M8672</guid>
      <dc:creator>agentguerry</dc:creator>
      <dc:date>2020-03-02T13:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: can multiple indexes be searched for different fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/can-multiple-indexes-be-searched-for-different-fields/m-p/484879#M8673</link>
      <description>&lt;P&gt;You can search both the indexes with OR.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=indexA fieldA1=&amp;lt;&amp;gt; fieldA2=&amp;lt;&amp;gt;) OR (index=indexB fieldB1=&amp;lt;&amp;gt; fieldB2=&amp;lt;&amp;gt;) | table index, fieldA1, fieldA2, fieldB1, fieldB2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/can-multiple-indexes-be-searched-for-different-fields/m-p/484879#M8673</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-02T14:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: can multiple indexes be searched for different fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/can-multiple-indexes-be-searched-for-different-fields/m-p/484880#M8674</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;this can be done in multiple ways.&lt;BR /&gt;
- append - &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Append"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Append&lt;/A&gt;&lt;BR /&gt;
it appends the results from the subsearch to the mail search as events&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;appendcols - &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Appendcols"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Appendcols&lt;/A&gt;
it will add the columns from the subsearch to the main search. The first subsearch result is merged with the first main result, the second subsearch result is merged with the second main result, and so on, without any relation.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;you will get the better idea by going through the examples given on the reference sites.&lt;/P&gt;

&lt;P&gt;accept &amp;amp; up-vote the answer if it helps&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/can-multiple-indexes-be-searched-for-different-fields/m-p/484880#M8674</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2020-03-02T14:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: can multiple indexes be searched for different fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/can-multiple-indexes-be-searched-for-different-fields/m-p/484881#M8675</link>
      <description>&lt;P&gt;thanks i will look into these more.  i do find that i can export a dashboard as pdf to email.  that may work for us for our needs.&lt;BR /&gt;
I believe that option will attach the pdf, but not plant the dashboard into the email body.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:40:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/can-multiple-indexes-be-searched-for-different-fields/m-p/484881#M8675</guid>
      <dc:creator>agentguerry</dc:creator>
      <dc:date>2020-03-02T14:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: can multiple indexes be searched for different fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/can-multiple-indexes-be-searched-for-different-fields/m-p/484882#M8676</link>
      <description>&lt;P&gt;accept the answer that helped to close the  question.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 07:52:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/can-multiple-indexes-be-searched-for-different-fields/m-p/484882#M8676</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2020-03-05T07:52:04Z</dc:date>
    </item>
  </channel>
</rss>

