<?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: Find correlation between nearly static data and a data feed. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Find-correlation-between-nearly-static-data-and-a-data-feed/m-p/275088#M190279</link>
    <description>&lt;P&gt;The other search should that should be setup to run every 24 hours just after the other file is written is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search on daily data | dedup user_id computer_id | table user_id computer_id | outputcsv usermapping.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 28 May 2016 21:21:41 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2016-05-28T21:21:41Z</dc:date>
    <item>
      <title>Find correlation between nearly static data and a data feed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-correlation-between-nearly-static-data-and-a-data-feed/m-p/275086#M190277</link>
      <description>&lt;P&gt;I'm looking to find a way to match up info from one data source that only changes once per day, and another data source that changes frequently. Each night we map &lt;CODE&gt;user_id&lt;/CODE&gt; to &lt;CODE&gt;computer_id&lt;/CODE&gt; and that file gets ingested into Splunk. During the day I have a constant stream of data coming in with mappings of &lt;CODE&gt;action_taken&lt;/CODE&gt; and &lt;CODE&gt;computer_id&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;My challenge is that I need to be able to look up the mapping of &lt;CODE&gt;user_id&lt;/CODE&gt; to &lt;CODE&gt;action_taken&lt;/CODE&gt; historically, to within the minute, and through the API. &lt;/P&gt;

&lt;P&gt;What is the best way to search/lookup/report that mapping? &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 03:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-correlation-between-nearly-static-data-and-a-data-feed/m-p/275086#M190277</guid>
      <dc:creator>tboyden</dc:creator>
      <dc:date>2016-05-28T03:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Find correlation between nearly static data and a data feed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-correlation-between-nearly-static-data-and-a-data-feed/m-p/275087#M190278</link>
      <description>&lt;P&gt;I think you should use an lookup table and maybe even setup automatic lookup. In a nutshell, the process you have running once a day, generates a .csv file. Setup this .csv as a lookup and have the daily process update the same file. You can also do an automatic lookup which will automatically, include the user_id on every search. Here's what your search will look like. Assume your lookup file is called usermapping.csv&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search on streaming data | lookup usermapping.csv computer_id OUTPUT user_id | ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.5/Knowledge/Usefieldlookupstoaddinformationtoyourevents"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.5/Knowledge/Usefieldlookupstoaddinformationtoyourevents&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 18:23:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-correlation-between-nearly-static-data-and-a-data-feed/m-p/275087#M190278</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-05-28T18:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Find correlation between nearly static data and a data feed.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-correlation-between-nearly-static-data-and-a-data-feed/m-p/275088#M190279</link>
      <description>&lt;P&gt;The other search should that should be setup to run every 24 hours just after the other file is written is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search on daily data | dedup user_id computer_id | table user_id computer_id | outputcsv usermapping.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 May 2016 21:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-correlation-between-nearly-static-data-and-a-data-feed/m-p/275088#M190279</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-28T21:21:41Z</dc:date>
    </item>
  </channel>
</rss>

