<?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: Another lookup question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Another-lookup-question/m-p/75299#M19020</link>
    <description>&lt;P&gt;This is the search I used&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;index="windows_server_events" host="server1" EventCode=560 Type="audit success" &lt;BR /&gt;&lt;BR /&gt;
| &lt;BR /&gt;&lt;BR /&gt;
lookup FileChanges Object_Name OUTPUT csv_host, csv_name&lt;BR /&gt;&lt;BR /&gt;
| &lt;BR /&gt;&lt;BR /&gt;
search csv_name="*"&lt;BR /&gt;&lt;BR /&gt;
|&lt;BR /&gt;&lt;BR /&gt;
table _time,host,Object_Name,Client_User_Name,csv_name,csv_host&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;With this CSV&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;csv_host,csv_name,Object_Name&lt;BR /&gt;&lt;BR /&gt;
server1,folder change test,*E:\Inetpub\*&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;And this transforms&lt;BR /&gt;&lt;BR /&gt;
[FileChanges]&lt;BR /&gt;&lt;BR /&gt;
filename =  FileChanges.csv&lt;BR /&gt;&lt;BR /&gt;
match_type = WILDCARD(Object_Name)&lt;BR /&gt;&lt;BR /&gt;
case_sensitive_match = false&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:51:22 GMT</pubDate>
    <dc:creator>jonbalderston</dc:creator>
    <dc:date>2020-09-28T14:51:22Z</dc:date>
    <item>
      <title>Another lookup question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-lookup-question/m-p/75296#M19017</link>
      <description>&lt;P&gt;I have this working:&lt;/P&gt;

&lt;P&gt;&lt;B&gt;| lookup SensitiveGroups.csv Target_Account_Name OUTPUT CSV_Priority | search CSV_Priority="Low" | table _time, Target_Account_Name, Member_ID, Caller_User_Name,CSV_Priority&lt;/B&gt;&lt;/P&gt;

&lt;P&gt;&lt;B&gt;SensitiveGroups.csv&lt;/B&gt; Below&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;
Target_Account_Name,CSV_Priority&lt;BR /&gt;&lt;BR /&gt;
Administrators,Low&lt;BR /&gt;
Domain Admins,Low&lt;/P&gt;

&lt;P&gt;Now this will create a table that lists changes to Target_Account_Name field where it equals Administrators or Domain Admins.&lt;BR /&gt;
&lt;B&gt;This Works&lt;/B&gt;&lt;/P&gt;

&lt;P&gt;But, I'm not doing a file/folder audit change one, based on other event codes, etc. where the path of the file being changed could be c:\blah\blah\example.txt, so I want to flag where field Object contains c:\blah\blah&lt;/P&gt;

&lt;P&gt;I could obviously create a lookup file like this, which would tell me when an event pops up with the exact file path in:&lt;/P&gt;

&lt;P&gt;Object,CSV_Priority&lt;BR /&gt;&lt;BR /&gt;
c:\blah\blah\example.txt,Low&lt;/P&gt;

&lt;P&gt;Using similar rule as above, but it would miss c:\blah\blah\example2.txt, so I want to use a file like below where any object containing c:\blah\blah gets flagged and reported, so not an equals in the lookup, but a contains.&lt;/P&gt;

&lt;P&gt;Object,CSV_Priority&lt;BR /&gt;&lt;BR /&gt;
c:\blah\blah,Low&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-lookup-question/m-p/75296#M19017</guid>
      <dc:creator>jonbalderston</dc:creator>
      <dc:date>2020-09-28T14:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Another lookup question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-lookup-question/m-p/75297#M19018</link>
      <description>&lt;P&gt;Use something like this which can take wild characters like * for a value in column in lookup table&lt;BR /&gt;
so u can use this in lookup table &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Object,Priority
C:/blah*,Low
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And in transforms add &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SensitiveGroups]
filename =  SensitiveGroups.csv
match_type = WILDCARD(Object)
case_sensitive_match = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then use query like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;lookup SensitiveGroups Target_Account_Name OUTPUT CSV_Priority | search CSV_Priority="Low" | table _time, Target_Account_Name, Member_ID, Caller_User_Name,CSV_Priority
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Sep 2013 11:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-lookup-question/m-p/75297#M19018</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2013-09-27T11:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Another lookup question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-lookup-question/m-p/75298#M19019</link>
      <description>&lt;P&gt;&lt;B&gt;Works great&lt;/B&gt;, found I had to put this in though &lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
search csv_name="*"&lt;/P&gt;

&lt;P&gt;What are the reasons for using the transforms file rather than .csv in search like I was doing?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2013 13:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-lookup-question/m-p/75298#M19019</guid>
      <dc:creator>jonbalderston</dc:creator>
      <dc:date>2013-09-27T13:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Another lookup question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Another-lookup-question/m-p/75299#M19020</link>
      <description>&lt;P&gt;This is the search I used&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;index="windows_server_events" host="server1" EventCode=560 Type="audit success" &lt;BR /&gt;&lt;BR /&gt;
| &lt;BR /&gt;&lt;BR /&gt;
lookup FileChanges Object_Name OUTPUT csv_host, csv_name&lt;BR /&gt;&lt;BR /&gt;
| &lt;BR /&gt;&lt;BR /&gt;
search csv_name="*"&lt;BR /&gt;&lt;BR /&gt;
|&lt;BR /&gt;&lt;BR /&gt;
table _time,host,Object_Name,Client_User_Name,csv_name,csv_host&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;With this CSV&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;csv_host,csv_name,Object_Name&lt;BR /&gt;&lt;BR /&gt;
server1,folder change test,*E:\Inetpub\*&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;And this transforms&lt;BR /&gt;&lt;BR /&gt;
[FileChanges]&lt;BR /&gt;&lt;BR /&gt;
filename =  FileChanges.csv&lt;BR /&gt;&lt;BR /&gt;
match_type = WILDCARD(Object_Name)&lt;BR /&gt;&lt;BR /&gt;
case_sensitive_match = false&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:51:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Another-lookup-question/m-p/75299#M19020</guid>
      <dc:creator>jonbalderston</dc:creator>
      <dc:date>2020-09-28T14:51:22Z</dc:date>
    </item>
  </channel>
</rss>

