<?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: Splunk Use multiple index in a same search in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503824#M85928</link>
    <description>&lt;P&gt;I try with this because we need the position of the indexes.&lt;/P&gt;&lt;P&gt;(index="inlooxtt" StatusName!=Pausado StatusName!=Completed StatusName!=Cancelled PerformedByName!=Donado* ) OR (index="inlooxtasks" ProjectStatusName!="Paused" ProjectStatusName!="Completed" ProjectStatusName!="Cancelled" ContactDisplayName!=Donado* ContactDisplayName!="null")&lt;BR /&gt;| rename ProjectName as Proyectos&lt;BR /&gt;| eval Tiempo_Ejecutado=(DurationMinutes/60), Tiempo_Planeado=WorkAmount&lt;BR /&gt;| stats dedup_splitvals=true sum(Tiempo_Ejecutado) as Tiempo_Ejecutado, sum(Tiempo_Planeado) as Tiempo_Planeado by Proyectos&lt;BR /&gt;| eval Tiempo_Ejecutado=round(Tiempo_Ejecutado,2)&lt;BR /&gt;| sort Proyectos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the solution is the OR thanks for all!&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2020 23:49:39 GMT</pubDate>
    <dc:creator>jaciro11</dc:creator>
    <dc:date>2020-06-10T23:49:39Z</dc:date>
    <item>
      <title>Splunk Use multiple index in a same search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503784#M85911</link>
      <description>&lt;P&gt;Hello Slunk Team,&lt;/P&gt;&lt;P&gt;I have a question about&amp;nbsp;&lt;STRONG&gt;appendcols.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I try to use two index to compare some information I got the information in different orders not in the same to compare the values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SEARCH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;index="inlooxtt" StatusName!=Paused StatusName!=Completed StatusName!=Cancelled PerformedByName!=Donado* | eval Horas=(DurationMinutes/60) |stats dedup_splitvals=true sum(Horas) as Tiempo by ProjectName | eval Tiempo=round(Tiempo,2) |rename Tiempo as Tiempo | sort ProjectName | appendcols [search index="inlooxtasks" ProjectStatusName!=Paused ProjectStatusName!=Completed ProjectStatusName!=Cancelled ContactDisplayName!=Donado* ContactDisplayName!="null" | eval Horas2=(WorkAmount) | stats dedup_splitvals=true sum(Horas2) as Tiempo2 by ProjectName | rename ProjectName as Proyecto2 | eval Tiempo2=round(Tiempo2,2) | sort Proyecto2]&lt;/P&gt;&lt;P&gt;How I can do to solve my iproblem I will show what happen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Splunk Order.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9105i07F5D47713F77CBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Splunk Order.png" alt="Splunk Order.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to have all my data in order to do a exatly data comparison&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all!!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 19:04:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503784#M85911</guid>
      <dc:creator>jaciro11</dc:creator>
      <dc:date>2020-06-10T19:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Use multiple index in a same search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503790#M85914</link>
      <description>&lt;P&gt;I looked at your query and am not seeing a reason why you are using appencols.&amp;nbsp; If your goal is to compare the work amount to the DurationMinutes you can do that without running the same query again in appendcols and ensure it's on the same project with the below query:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;index="inlooxtt" StatusName!=Paused StatusName!=Completed StatusName!=Cancelled PerformedByName!=Donado* 
| eval Horas=(DurationMinutes/60), WorkAmount=if(ContactDisplayName!="null", WorkAmount, null())
| stats dedup_splitvals=true sum(Horas) as Tiempo sum(WorkAmount) as Tiempo2 by ProjectName 
| eval Tiempo=round(Tiempo,2) 
| rename Tiempo as Tiempo 
| sort ProjectName &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed in your append cols you only wanted to include WorkAmounts where the ContactDisplayName!="null".&amp;nbsp; Adding an eval that accomplishes that allows you to do this in a single query.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 19:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503790#M85914</guid>
      <dc:creator>dmarling</dc:creator>
      <dc:date>2020-06-10T19:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Use multiple index in a same search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503795#M85924</link>
      <description>&lt;P&gt;You could try something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="inlooxtt" StatusName!=Paused StatusName!=Completed StatusName!=Cancelled PerformedByName!=Donado* 
    OR (index="inlooxtasks" ProjectStatusName!=Paused ProjectStatusName!=Completed ProjectStatusName!=Cancelled ContactDisplayName!=Donado* ContactDisplayName!="null") 
| eval Tiempo=(DurationMinutes/60), Tiempo2=WorkAmount 
| stats dedup_splitvals=true sum(Tiempo) as Tiempo, sum(Tiempo2) as Tiempo2 by ProjectName 
| eval Tiempo=round(Tiempo,2) 
| sort ProjectName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;An OR clause will be much more efficient than &lt;EM&gt;appendcols&lt;/EM&gt;, and you can aggregate all the data before transforming it in stats.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;-Greg&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 20:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503795#M85924</guid>
      <dc:creator>greg_kollias</dc:creator>
      <dc:date>2020-06-10T20:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Use multiple index in a same search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503806#M85925</link>
      <description>&lt;P&gt;Hello Greg,&lt;/P&gt;&lt;P&gt;When I try to use ur search I take this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9112iFA2D568B448BE919/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error.png" alt="Error.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 21:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503806#M85925</guid>
      <dc:creator>jaciro11</dc:creator>
      <dc:date>2020-06-10T21:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Use multiple index in a same search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503810#M85926</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its not the same Query we have 2 different Index, Inlooxtt and Inlooxasks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 22:01:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503810#M85926</guid>
      <dc:creator>jaciro11</dc:creator>
      <dc:date>2020-06-10T22:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Use multiple index in a same search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503824#M85928</link>
      <description>&lt;P&gt;I try with this because we need the position of the indexes.&lt;/P&gt;&lt;P&gt;(index="inlooxtt" StatusName!=Pausado StatusName!=Completed StatusName!=Cancelled PerformedByName!=Donado* ) OR (index="inlooxtasks" ProjectStatusName!="Paused" ProjectStatusName!="Completed" ProjectStatusName!="Cancelled" ContactDisplayName!=Donado* ContactDisplayName!="null")&lt;BR /&gt;| rename ProjectName as Proyectos&lt;BR /&gt;| eval Tiempo_Ejecutado=(DurationMinutes/60), Tiempo_Planeado=WorkAmount&lt;BR /&gt;| stats dedup_splitvals=true sum(Tiempo_Ejecutado) as Tiempo_Ejecutado, sum(Tiempo_Planeado) as Tiempo_Planeado by Proyectos&lt;BR /&gt;| eval Tiempo_Ejecutado=round(Tiempo_Ejecutado,2)&lt;BR /&gt;| sort Proyectos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the solution is the OR thanks for all!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 23:49:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Use-multiple-index-in-a-same-search/m-p/503824#M85928</guid>
      <dc:creator>jaciro11</dc:creator>
      <dc:date>2020-06-10T23:49:39Z</dc:date>
    </item>
  </channel>
</rss>

