<?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 Run the condition on multiple fields of each events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Run-the-condition-on-multiple-fields-of-each-events/m-p/473904#M133329</link>
    <description>&lt;P&gt;I have set of events as below:&lt;/P&gt;

&lt;P&gt;EmployeeID            Company&lt;BR /&gt;
C123                           ABC&lt;BR /&gt;
C456                           DEF &lt;BR /&gt;
C789&lt;BR /&gt;
2598&lt;BR /&gt;
3648&lt;/P&gt;

&lt;P&gt;Here, all the EmployeeID starting with  C are Contractors and some of them have Company values. Now I want to achieve 2 things&lt;BR /&gt;
1.  I want to Populate "Unknown" where the EmployeeID starts with C but there is no Company value.&lt;BR /&gt;
2. And for all the other EmployeeID (not starting with C),  I want to populate Fulltime.&lt;/P&gt;

&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 16:51:29 GMT</pubDate>
    <dc:creator>khojas02</dc:creator>
    <dc:date>2020-04-08T16:51:29Z</dc:date>
    <item>
      <title>Run the condition on multiple fields of each events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-the-condition-on-multiple-fields-of-each-events/m-p/473904#M133329</link>
      <description>&lt;P&gt;I have set of events as below:&lt;/P&gt;

&lt;P&gt;EmployeeID            Company&lt;BR /&gt;
C123                           ABC&lt;BR /&gt;
C456                           DEF &lt;BR /&gt;
C789&lt;BR /&gt;
2598&lt;BR /&gt;
3648&lt;/P&gt;

&lt;P&gt;Here, all the EmployeeID starting with  C are Contractors and some of them have Company values. Now I want to achieve 2 things&lt;BR /&gt;
1.  I want to Populate "Unknown" where the EmployeeID starts with C but there is no Company value.&lt;BR /&gt;
2. And for all the other EmployeeID (not starting with C),  I want to populate Fulltime.&lt;/P&gt;

&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 16:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-the-condition-on-multiple-fields-of-each-events/m-p/473904#M133329</guid>
      <dc:creator>khojas02</dc:creator>
      <dc:date>2020-04-08T16:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Run the condition on multiple fields of each events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-the-condition-on-multiple-fields-of-each-events/m-p/473905#M133330</link>
      <description>&lt;P&gt;This should help.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval Company = case(isnotnull(Company), Company, match(EmployeeID, "C.*"), "Unknown", 1==1, "Fulltime")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Apr 2020 17:45:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-the-condition-on-multiple-fields-of-each-events/m-p/473905#M133330</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-08T17:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Run the condition on multiple fields of each events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-the-condition-on-multiple-fields-of-each-events/m-p/473906#M133331</link>
      <description>&lt;P&gt;Thanks a lot, it worked for me.&lt;/P&gt;

&lt;P&gt;I was trying to implement nested loop but it was giving me an error about malformed function or repeatable action. Thanking again for help!!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 18:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-the-condition-on-multiple-fields-of-each-events/m-p/473906#M133331</guid>
      <dc:creator>khojas02</dc:creator>
      <dc:date>2020-04-08T18:19:03Z</dc:date>
    </item>
  </channel>
</rss>

