<?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: Mapping data from small sourcetype to another larger sourcetype in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Mapping-data-from-small-sourcetype-to-another-larger-sourcetype/m-p/443327#M170597</link>
    <description>&lt;P&gt;Hi memarshall63, yes it works, but problem is the search takes too much time (currently it's taking me more than 1 hour!). Query above is just a simplified version, I have to do a lot of evals before the stats.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 04:00:55 GMT</pubDate>
    <dc:creator>tleduc</dc:creator>
    <dc:date>2019-06-27T04:00:55Z</dc:date>
    <item>
      <title>Mapping data from small sourcetype to another larger sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mapping-data-from-small-sourcetype-to-another-larger-sourcetype/m-p/443325#M170595</link>
      <description>&lt;P&gt;Hello! I'm having this issue of merging data from one sourcetype to another larger sourcetype. Example:&lt;/P&gt;

&lt;P&gt;index=ecs_internal (sourcetype=ecs:encode parcel_id=* earliest=-30d@d latest=@d) OR (sourcetype=ecs:input barcode_id=* earliest=-60d@d latest=@d)&lt;BR /&gt;
| eval parcel_id=if(isnotnull(parcel_id), parcel_id, barcode_id)&lt;BR /&gt;
| stats latest(*) as *, sum(eval(if(sourcetype=ecs:encode, 1, 0))) as valid by parcel_id&lt;BR /&gt;
| where valid &amp;gt;= 1&lt;/P&gt;

&lt;P&gt;Aim: Display all events in ecs:encode, then lookup latest related information from ecs:input. Basically, only 30% of all events in ecs:input would have data relevant to ecs:encode, thus my search is extremely slow... Join command would not work as I'm having millions of events in both sourcetypes.&lt;/P&gt;

&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:04:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mapping-data-from-small-sourcetype-to-another-larger-sourcetype/m-p/443325#M170595</guid>
      <dc:creator>tleduc</dc:creator>
      <dc:date>2020-09-30T01:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping data from small sourcetype to another larger sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mapping-data-from-small-sourcetype-to-another-larger-sourcetype/m-p/443326#M170596</link>
      <description>&lt;P&gt;Isn't the phrase:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;| where valid &amp;gt;=1&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;effectively saying don't show any stats that aren't in sourcetype=ecs:input?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 03:55:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mapping-data-from-small-sourcetype-to-another-larger-sourcetype/m-p/443326#M170596</guid>
      <dc:creator>memarshall63</dc:creator>
      <dc:date>2019-06-27T03:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping data from small sourcetype to another larger sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mapping-data-from-small-sourcetype-to-another-larger-sourcetype/m-p/443327#M170597</link>
      <description>&lt;P&gt;Hi memarshall63, yes it works, but problem is the search takes too much time (currently it's taking me more than 1 hour!). Query above is just a simplified version, I have to do a lot of evals before the stats.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 04:00:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mapping-data-from-small-sourcetype-to-another-larger-sourcetype/m-p/443327#M170597</guid>
      <dc:creator>tleduc</dc:creator>
      <dc:date>2019-06-27T04:00:55Z</dc:date>
    </item>
  </channel>
</rss>

