<?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 Use stat with two different Index with different fields name to define in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Use-stat-with-two-different-Index-with-different-fields-name-to/m-p/504191#M85961</link>
    <description>&lt;P&gt;Hello Splunk TEAM,&lt;/P&gt;&lt;P&gt;I have a problem with my search because I use to different index and the data which I want to compare when I want to define by a field is different for example.&lt;BR /&gt;&lt;BR /&gt;I have two Index&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;in one I have ContactByName and in the other index I have PerformedByName.&lt;BR /&gt;I the two fields I have the same data but when I want to compare the data in that information I cant.&lt;BR /&gt;I try to rename ContactByName as PerformedByName to do my search again but is not a good idea.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this Right now:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(index="inlooxtt" StatusName!=Completed StatusName!=Cancelled PerformedByName!=Donado* CreatedDate&amp;gt;2020-05-30 ProjectName!="Capac* General" ProjectName!="Preventas*") OR (index="inlooxtasks" ProjectStatusName!=Completed ProjectStatusName!=Cancelled ContactDisplayName!=Donado* ContactDisplayName!="null" ProjectName!="Capac* General" ProjectName!="Preventas*")&lt;BR /&gt;| rename ContactDisplayName as PerformedByname&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 PerformedByname&lt;BR /&gt;&lt;BR /&gt;But I have this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lost.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9169iFCAA541D6873BDE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lost.png" alt="Lost.png" /&gt;&lt;/span&gt;&lt;BR /&gt;The Tiempo_Ejecutado didnt appear &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks all&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jun 2020 15:44:29 GMT</pubDate>
    <dc:creator>jaciro11</dc:creator>
    <dc:date>2020-06-12T15:44:29Z</dc:date>
    <item>
      <title>Use stat with two different Index with different fields name to define</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Use-stat-with-two-different-Index-with-different-fields-name-to/m-p/504191#M85961</link>
      <description>&lt;P&gt;Hello Splunk TEAM,&lt;/P&gt;&lt;P&gt;I have a problem with my search because I use to different index and the data which I want to compare when I want to define by a field is different for example.&lt;BR /&gt;&lt;BR /&gt;I have two Index&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;in one I have ContactByName and in the other index I have PerformedByName.&lt;BR /&gt;I the two fields I have the same data but when I want to compare the data in that information I cant.&lt;BR /&gt;I try to rename ContactByName as PerformedByName to do my search again but is not a good idea.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this Right now:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(index="inlooxtt" StatusName!=Completed StatusName!=Cancelled PerformedByName!=Donado* CreatedDate&amp;gt;2020-05-30 ProjectName!="Capac* General" ProjectName!="Preventas*") OR (index="inlooxtasks" ProjectStatusName!=Completed ProjectStatusName!=Cancelled ContactDisplayName!=Donado* ContactDisplayName!="null" ProjectName!="Capac* General" ProjectName!="Preventas*")&lt;BR /&gt;| rename ContactDisplayName as PerformedByname&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 PerformedByname&lt;BR /&gt;&lt;BR /&gt;But I have this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lost.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9169iFCAA541D6873BDE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lost.png" alt="Lost.png" /&gt;&lt;/span&gt;&lt;BR /&gt;The Tiempo_Ejecutado didnt appear &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks all&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 15:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Use-stat-with-two-different-Index-with-different-fields-name-to/m-p/504191#M85961</guid>
      <dc:creator>jaciro11</dc:creator>
      <dc:date>2020-06-12T15:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use stat with two different Index with different fields name to define</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Use-stat-with-two-different-Index-with-different-fields-name-to/m-p/504194#M85962</link>
      <description>&lt;P&gt;Try using &lt;FONT face="courier new,courier"&gt;coalesce&lt;/FONT&gt; in place of &lt;FONT face="courier new,courier"&gt;rename&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index="inlooxtt" StatusName!=Completed StatusName!=Cancelled PerformedByName!=Donado* CreatedDate&amp;gt;2020-05-30 ProjectName!="Capac* General" ProjectName!="Preventas*") OR (index="inlooxtasks" ProjectStatusName!=Completed ProjectStatusName!=Cancelled ContactDisplayName!=Donado* ContactDisplayName!="null" ProjectName!="Capac* General" ProjectName!="Preventas*")
| eval PerformedBy = coalesce( ContactDisplayName, PerformedByname)
| eval Tiempo_Ejecutado=(DurationMinutes/60), Tiempo_Planeado=WorkAmount
| stats dedup_splitvals=true sum(Tiempo_Ejecutado) as Tiempo_Ejecutado, sum(Tiempo_Planeado) as Tiempo_Planeado by PerformedBy&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 15:55:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Use-stat-with-two-different-Index-with-different-fields-name-to/m-p/504194#M85962</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-12T15:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use stat with two different Index with different fields name to define</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Use-stat-with-two-different-Index-with-different-fields-name-to/m-p/504206#M85964</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It Working!!! Thanks you !!!!!!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 16:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Use-stat-with-two-different-Index-with-different-fields-name-to/m-p/504206#M85964</guid>
      <dc:creator>jaciro11</dc:creator>
      <dc:date>2020-06-12T16:48:03Z</dc:date>
    </item>
  </channel>
</rss>

