<?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 to write a script to correlate data in a file with an event in Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-script-to-correlate-data-in-a-file-with-an-event/m-p/341410#M163208</link>
    <description>&lt;P&gt;You don't need a script for this. Take a look at &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/Aboutlookupsandfieldactions"&gt;lookups&lt;/A&gt; . Write a lookup that has a uid &amp;gt; username correlation and you can &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/DefineanautomaticlookupinSplunkWeb"&gt;run it automatically&lt;/A&gt; if needed.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2018 23:41:08 GMT</pubDate>
    <dc:creator>davpx</dc:creator>
    <dc:date>2018-01-31T23:41:08Z</dc:date>
    <item>
      <title>How to write a script to correlate data in a file with an event in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-script-to-correlate-data-in-a-file-with-an-event/m-p/341409#M163207</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I want to know if it is possible to do a script which read a file and correlate the data in this file with an event in Splunk.&lt;/P&gt;

&lt;P&gt;For example, when I put a USB key in Linux, I have this log:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Jan 31 11:02:51 PFSplunkCentOS5 hald: mounted /dev/sdb1 on behalf of uid 0&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and I want to correlate UID 0 with the &lt;CODE&gt;file /etc/passwd&lt;/CODE&gt; and say &lt;CODE&gt;uid 0 = root&lt;/CODE&gt; or other user and put root in the event in Splunk like metadata.&lt;/P&gt;

&lt;P&gt;Cordially&lt;/P&gt;

&lt;P&gt;amir&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 16:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-script-to-correlate-data-in-a-file-with-an-event/m-p/341409#M163207</guid>
      <dc:creator>amir_thales</dc:creator>
      <dc:date>2018-01-31T16:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script to correlate data in a file with an event in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-script-to-correlate-data-in-a-file-with-an-event/m-p/341410#M163208</link>
      <description>&lt;P&gt;You don't need a script for this. Take a look at &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/Aboutlookupsandfieldactions"&gt;lookups&lt;/A&gt; . Write a lookup that has a uid &amp;gt; username correlation and you can &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/DefineanautomaticlookupinSplunkWeb"&gt;run it automatically&lt;/A&gt; if needed.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 23:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-script-to-correlate-data-in-a-file-with-an-event/m-p/341410#M163208</guid>
      <dc:creator>davpx</dc:creator>
      <dc:date>2018-01-31T23:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script to correlate data in a file with an event in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-script-to-correlate-data-in-a-file-with-an-event/m-p/341411#M163209</link>
      <description>&lt;P&gt;Hello davpx,&lt;/P&gt;

&lt;P&gt;How can read the /etc/passwd file to correlate the uid with the user because the "lookup" function uses only KML, KMZ and CSV and I want to use the "/etc/passwd" which isn't a KML, KMZ or CSV file.&lt;/P&gt;

&lt;P&gt;Thank you &lt;BR /&gt;
amir&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 09:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-script-to-correlate-data-in-a-file-with-an-event/m-p/341411#M163209</guid>
      <dc:creator>amir_thales</dc:creator>
      <dc:date>2018-02-05T09:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script to correlate data in a file with an event in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-script-to-correlate-data-in-a-file-with-an-event/m-p/341412#M163210</link>
      <description>&lt;P&gt;my problem is solved thank you&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 15:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-script-to-correlate-data-in-a-file-with-an-event/m-p/341412#M163210</guid>
      <dc:creator>amir_thales</dc:creator>
      <dc:date>2018-02-05T15:23:15Z</dc:date>
    </item>
  </channel>
</rss>

