<?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 make a couple of  indices in one table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-couple-of-indices-in-one-table/m-p/309201#M92737</link>
    <description>&lt;P&gt;Thank you !&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2017 20:15:32 GMT</pubDate>
    <dc:creator>eyaluodba</dc:creator>
    <dc:date>2017-05-23T20:15:32Z</dc:date>
    <item>
      <title>How do I make a couple of  indices in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-couple-of-indices-in-one-table/m-p/309198#M92734</link>
      <description>&lt;P&gt;Is it possible to have two different indices and have results in a single table? The Indices are...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*web_access.log* /app/  action=edit | rex  "/app/(?&amp;lt;app_name&amp;gt;.\w+)/(?&amp;lt;dashboard_name&amp;gt;.\w+)" | table dashboard_name, _time, app_name, user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action=search info=granted search=* NOT "search_id='scheduler" NOT "search='|history" NOT "user=splunk-system-user" NOT "search='typeahead" NOT "search='| metadata type=* | search totalCount&amp;gt;0" | rex field=search "index=(?P&amp;lt;search_index&amp;gt;[^ ]+)" | stats count by search_index | sort - count| table search_index user 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please let me know! Thank you so much.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 19:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-couple-of-indices-in-one-table/m-p/309198#M92734</guid>
      <dc:creator>eyaluodba</dc:creator>
      <dc:date>2017-05-23T19:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a couple of  indices in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-couple-of-indices-in-one-table/m-p/309199#M92735</link>
      <description>&lt;P&gt;You can join searches many ways but almost all of them are subjected to the 50Kish event limit so beware this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*web_access.log* /app/ action=edit 
| rex "/app/(?&amp;lt;app_name&amp;gt;.\w+)/(?&amp;lt;dashboard_name&amp;gt;.\w+)" 
| table dashboard_name, _time, app_name, user 
| append 
[ search index=_audit action=search info=granted search=* NOT "search_id='scheduler" NOT "search='|history" NOT "user=splunk-system-user" NOT "search='typeahead" NOT "search='| metadata type=* | search totalCount&amp;gt;0" 
| rex field=search "index=(?P&amp;lt;search_index&amp;gt;[^ ]+)" 
| stats count by search_index 
| sort - count 
| table search_index user]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 May 2017 20:05:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-couple-of-indices-in-one-table/m-p/309199#M92735</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-23T20:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a couple of  indices in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-couple-of-indices-in-one-table/m-p/309200#M92736</link>
      <description>&lt;P&gt;Hi eyaluodba,&lt;/P&gt;

&lt;P&gt;Sure, read more about the topic in this answer &lt;A href="https://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html"&gt;https://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html&lt;/A&gt; or in the Virtual .conf March 2016 session over here &lt;A href="http://wiki.splunk.com/Virtual_.conf"&gt;http://wiki.splunk.com/Virtual_.conf&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;For a start just combine your base searches:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;( index=_internal source=*web_access.log* /app/  action=edit ) OR ( index=_audit action=search info=granted search=* NOT "search_id='scheduler" NOT "search='|history" NOT "user=splunk-system-user" NOT "search='typeahead" NOT "search='| metadata type=* | search totalCount&amp;gt;0" ) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;followed by any further commands you need to get to your required result.&lt;/P&gt;

&lt;P&gt;Hope that helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 20:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-couple-of-indices-in-one-table/m-p/309200#M92736</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-05-23T20:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a couple of  indices in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-couple-of-indices-in-one-table/m-p/309201#M92737</link>
      <description>&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 20:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-couple-of-indices-in-one-table/m-p/309201#M92737</guid>
      <dc:creator>eyaluodba</dc:creator>
      <dc:date>2017-05-23T20:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a couple of  indices in one table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-couple-of-indices-in-one-table/m-p/309202#M92738</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 20:21:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-couple-of-indices-in-one-table/m-p/309202#M92738</guid>
      <dc:creator>eyaluodba</dc:creator>
      <dc:date>2017-05-23T20:21:40Z</dc:date>
    </item>
  </channel>
</rss>

