<?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: Can I do an if else in a props.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-do-an-if-else-in-a-props-conf/m-p/412308#M94502</link>
    <description>&lt;P&gt;Thank You!&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 15:46:19 GMT</pubDate>
    <dc:creator>pfabrizi</dc:creator>
    <dc:date>2018-06-28T15:46:19Z</dc:date>
    <item>
      <title>Can I do an if else in a props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-do-an-if-else-in-a-props-conf/m-p/412306#M94500</link>
      <description>&lt;P&gt;I am using Graylog to forward my windows events, all the events field names start with winlogbeat, but some are&lt;BR /&gt;
_event_data_targetname and some are _event_data_Subjectname. This appears to be different based on windows event type.&lt;/P&gt;

&lt;P&gt;Can I do a &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;if winlogbeats_event_data_targetnamedomain  not null then 
                FIELDALIAS-winlogbeat_as_account_domain = winlogbeat_event_data_TargetDomainName as Account_Domain
else
               FIELDALIAS-winlogbeat_as_account_domain = winlogbeat_event_data_SubjectDomainName as Account_Domain
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-do-an-if-else-in-a-props-conf/m-p/412306#M94500</guid>
      <dc:creator>pfabrizi</dc:creator>
      <dc:date>2020-09-29T20:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can I do an if else in a props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-do-an-if-else-in-a-props-conf/m-p/412307#M94501</link>
      <description>&lt;P&gt;You can do something like below&lt;/P&gt;

&lt;P&gt;FIELDALIAS-winlogbeat_as_account_domain_target = winlogbeat_event_data_TargetDomainName as Account_Domain&lt;BR /&gt;
FIELDALIAS-winlogbeat_as_account_domain_subject = winlogbeat_event_data_SubjectDomainName as Account_Domain&lt;BR /&gt;
EVAL-winlogbeat_as_account_domain= coalesce(winlogbeat_as_account_domain_target , winlogbeat_as_account_domain_subject )&lt;/P&gt;

&lt;P&gt;Calculated fields&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.1/Knowledge/definecalcfields" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.1/Knowledge/definecalcfields&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:11:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-do-an-if-else-in-a-props-conf/m-p/412307#M94501</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2020-09-29T20:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can I do an if else in a props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-do-an-if-else-in-a-props-conf/m-p/412308#M94502</link>
      <description>&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:46:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-do-an-if-else-in-a-props-conf/m-p/412308#M94502</guid>
      <dc:creator>pfabrizi</dc:creator>
      <dc:date>2018-06-28T15:46:19Z</dc:date>
    </item>
  </channel>
</rss>

