<?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: Index combination from with different event structure? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-index-combination-with-different-event-structure/m-p/616548#M214285</link>
    <description>&lt;P&gt;thanks for your reply, unfortunately I'm actually looking for other query. I've tried this to start so far:&lt;/P&gt;&lt;P&gt;|set union[search index=indexA user=john|fields description user][search index=indexB user=john|fields user EventCode Workstation]&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;could someone help to expand the search idea or make few tweaks to merge into one table?&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 10 Oct 2022 16:01:26 GMT</pubDate>
    <dc:creator>aa0</dc:creator>
    <dc:date>2022-10-10T16:01:26Z</dc:date>
    <item>
      <title>How to index combination with different event structure?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-index-combination-with-different-event-structure/m-p/616541#M214281</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I would like to create a table with details involved from two different index created.&amp;nbsp;&lt;SPAN&gt;I'm facing difficulty in combining the data from both two indexes with common columns but different event structure.&lt;/SPAN&gt; How to start a query to merge/combine fields from different indexes? As mentioned, both indexes consist of one similar field which is user=john. Here are the details:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IndexA&lt;/P&gt;
&lt;P&gt;fieldA1=user (john)&lt;/P&gt;
&lt;P&gt;fieldA2=description&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IndexB&lt;/P&gt;
&lt;P&gt;fieldB1=user (john)&lt;/P&gt;
&lt;P&gt;fieldB2=Workstation&lt;/P&gt;
&lt;P&gt;fieldB3=EventCode&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected result:&lt;/P&gt;
&lt;P&gt;user| EventCode| description| Workstation&lt;/P&gt;
&lt;P&gt;john|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4740&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |locked out| Lenovo..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could someone point me to the right direction on how to start a Splunk Cloud query to merge into one table?&lt;/P&gt;
&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 16:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-index-combination-with-different-event-structure/m-p/616541#M214281</guid>
      <dc:creator>aa0</dc:creator>
      <dc:date>2022-10-10T16:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Index combination from with different event structure?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-index-combination-with-different-event-structure/m-p/616544#M214284</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246667"&gt;@aa0&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to use teh sats command, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=indexA OR index=indexB
| stats values(EventCode) AS EventCode values(description) AS description  values(Workstation) AS Workstation BY user&lt;/LI-CODE&gt;&lt;P&gt;if you have more values, you can choose to display al the values (as in the above sample) or only the first or only the last (using first or last instead values).&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 15:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-index-combination-with-different-event-structure/m-p/616544#M214284</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-10T15:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Index combination from with different event structure?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-index-combination-with-different-event-structure/m-p/616548#M214285</link>
      <description>&lt;P&gt;thanks for your reply, unfortunately I'm actually looking for other query. I've tried this to start so far:&lt;/P&gt;&lt;P&gt;|set union[search index=indexA user=john|fields description user][search index=indexB user=john|fields user EventCode Workstation]&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;could someone help to expand the search idea or make few tweaks to merge into one table?&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Oct 2022 16:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-index-combination-with-different-event-structure/m-p/616548#M214285</guid>
      <dc:creator>aa0</dc:creator>
      <dc:date>2022-10-10T16:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Index combination from with different event structure?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-index-combination-with-different-event-structure/m-p/616560#M214288</link>
      <description>&lt;P&gt;Assuming you're using indexA's user description to enrich events from indexB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN ("indexA", "indexB") user=john
| eventstats max(description) AS description BY user
| search EventCode=*
| table _time user EventCode description Workstation&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 17:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-index-combination-with-different-event-structure/m-p/616560#M214288</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-10T17:31:23Z</dc:date>
    </item>
  </channel>
</rss>

