<?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: How do I return a field(s) from a specific index, where the query has multiple search indexes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-a-field-s-from-a-specific-index-where-the-query/m-p/401179#M116169</link>
    <description>&lt;P&gt;Try something like below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=security sourcetype=symantec OR (sourcetyoe=WinHostMon (Path="malwarebytes")) | fillnull value="" | eval Host_table Host_Name,host |dedup Host_Name,host |eval host1 = if(sourcetype=WinHostMon,host,"")| stats values(host1) as host by hostname
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 09 Jan 2019 20:32:30 GMT</pubDate>
    <dc:creator>Vijeta</dc:creator>
    <dc:date>2019-01-09T20:32:30Z</dc:date>
    <item>
      <title>How do I return a field(s) from a specific index, where the query has multiple search indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-a-field-s-from-a-specific-index-where-the-query/m-p/401178#M116168</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=security sourcetype=*symantec* OR (sourcetyoe=WinHostMon (Path="*malwarebytes*")) | fillnull value="" | table Host_Name,host |dedup Host_Name,host |sort Host_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want a column showing the Host_Name from the symantec source type and a column showing the host field from the Malwarebytes (WinHostMon sourcetype).&lt;/P&gt;

&lt;P&gt;Currently, I'm getting the Host_Name field correctly, but the host field is coming from symantec sourcetype&lt;/P&gt;

&lt;P&gt;like below&lt;BR /&gt;
    Host_Name   host&lt;BR /&gt;
1   WKST-1315   sep&lt;BR /&gt;
2   WKST-1316   sep&lt;BR /&gt;
3   WKST-1317   sep&lt;BR /&gt;
4   WKST-1227   sep&lt;BR /&gt;
5   WKST-1295   sep&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 16:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-a-field-s-from-a-specific-index-where-the-query/m-p/401178#M116168</guid>
      <dc:creator>mmercola</dc:creator>
      <dc:date>2019-01-09T16:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I return a field(s) from a specific index, where the query has multiple search indexes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-a-field-s-from-a-specific-index-where-the-query/m-p/401179#M116169</link>
      <description>&lt;P&gt;Try something like below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=security sourcetype=symantec OR (sourcetyoe=WinHostMon (Path="malwarebytes")) | fillnull value="" | eval Host_table Host_Name,host |dedup Host_Name,host |eval host1 = if(sourcetype=WinHostMon,host,"")| stats values(host1) as host by hostname
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Jan 2019 20:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-a-field-s-from-a-specific-index-where-the-query/m-p/401179#M116169</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-01-09T20:32:30Z</dc:date>
    </item>
  </channel>
</rss>

