<?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 output lookup field from a boolean between multiple input fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/output-lookup-field-from-a-boolean-between-multiple-input-fields/m-p/435885#M76061</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm trying to make an automatic lookup for action=success / failure / read / deleted / modified / etc.  the problem is that my inputs are coming form multiple fields:&lt;/P&gt;

&lt;P&gt;res=success/failed&lt;BR /&gt;
type=user_auth&lt;BR /&gt;
type=login&lt;BR /&gt;
syscall=1/3/4/5/6/n&lt;/P&gt;

&lt;P&gt;for example, when my inputs are:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(type=login OR type=user_start) AND res=success
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;action should be "success"&lt;/P&gt;

&lt;P&gt;when:&lt;/P&gt;

&lt;P&gt;(type=login OR type=user_auth) AND res=failed&lt;/P&gt;

&lt;P&gt;action should be "failure"&lt;/P&gt;

&lt;P&gt;and when:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;syscall=4 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;action should be "deleted" (for example, I can map all the linux syscalls)&lt;/P&gt;

&lt;P&gt;my props is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[linux_audit]
LOOKUP-test1 = test_linux input_var1 AS syscall, input_var2 AS type, input_var3 AS res OUTPUTNEW output_var2 AS action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and my transforms is:&lt;/P&gt;

&lt;P&gt;[test_linux]&lt;BR /&gt;
batch_index_query = 0&lt;BR /&gt;
case_sensitive_match = 0&lt;BR /&gt;
filename = test_linux.csv&lt;/P&gt;

&lt;P&gt;this is my csv:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;input_var1,input_var2,input_var3,output_var2
2,,,read
,USER_LOGIN,failed,failure
,USER_START,failed,failure
,USER_LOGIN,success,success
,USER_START,success,success
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Im not getting the 'action' field. I know i can do this easily with and EVAL case function, but I want to test if such lookup is posible. I mean, if an event meets the lookup requirement, it's action field  should match to success/failure/deleted/modified/etc.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 20:25:14 GMT</pubDate>
    <dc:creator>3DGjos</dc:creator>
    <dc:date>2020-09-29T20:25:14Z</dc:date>
    <item>
      <title>output lookup field from a boolean between multiple input fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/output-lookup-field-from-a-boolean-between-multiple-input-fields/m-p/435885#M76061</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm trying to make an automatic lookup for action=success / failure / read / deleted / modified / etc.  the problem is that my inputs are coming form multiple fields:&lt;/P&gt;

&lt;P&gt;res=success/failed&lt;BR /&gt;
type=user_auth&lt;BR /&gt;
type=login&lt;BR /&gt;
syscall=1/3/4/5/6/n&lt;/P&gt;

&lt;P&gt;for example, when my inputs are:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(type=login OR type=user_start) AND res=success
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;action should be "success"&lt;/P&gt;

&lt;P&gt;when:&lt;/P&gt;

&lt;P&gt;(type=login OR type=user_auth) AND res=failed&lt;/P&gt;

&lt;P&gt;action should be "failure"&lt;/P&gt;

&lt;P&gt;and when:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;syscall=4 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;action should be "deleted" (for example, I can map all the linux syscalls)&lt;/P&gt;

&lt;P&gt;my props is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[linux_audit]
LOOKUP-test1 = test_linux input_var1 AS syscall, input_var2 AS type, input_var3 AS res OUTPUTNEW output_var2 AS action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and my transforms is:&lt;/P&gt;

&lt;P&gt;[test_linux]&lt;BR /&gt;
batch_index_query = 0&lt;BR /&gt;
case_sensitive_match = 0&lt;BR /&gt;
filename = test_linux.csv&lt;/P&gt;

&lt;P&gt;this is my csv:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;input_var1,input_var2,input_var3,output_var2
2,,,read
,USER_LOGIN,failed,failure
,USER_START,failed,failure
,USER_LOGIN,success,success
,USER_START,success,success
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Im not getting the 'action' field. I know i can do this easily with and EVAL case function, but I want to test if such lookup is posible. I mean, if an event meets the lookup requirement, it's action field  should match to success/failure/deleted/modified/etc.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/output-lookup-field-from-a-boolean-between-multiple-input-fields/m-p/435885#M76061</guid>
      <dc:creator>3DGjos</dc:creator>
      <dc:date>2020-09-29T20:25:14Z</dc:date>
    </item>
  </channel>
</rss>

