<?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: Create a new field using other field values concatenated in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-a-new-field-using-other-field-values-concatenated/m-p/699438#M237438</link>
    <description>&lt;PRE&gt;&lt;SPAN&gt;| eval description=if('app'=="linux", host. "-" .alert_type',&amp;nbsp; 'app'==windows, host. "-" .severity, "false")&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;You didn't nest the second IF statement&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;| eval description=if('app'=="linux", host. "-" .alert_type',if('app'==windows, host. "-" .severity, "false"))&lt;/SPAN&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Sep 2024 16:31:15 GMT</pubDate>
    <dc:creator>dural_yyz</dc:creator>
    <dc:date>2024-09-18T16:31:15Z</dc:date>
    <item>
      <title>Create a new field using other field values concatenated</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-new-field-using-other-field-values-concatenated/m-p/699437#M237437</link>
      <description>&lt;P&gt;I am trying to create a new field called "description" that contains values from two other existing fields.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If field "app" is equal to linux than i want to combine existing fields "host" and "alert_type".&lt;BR /&gt;&lt;BR /&gt;If field "app" is equal to windows than i want to combine existing field values "host" and "severity"&lt;/P&gt;
&lt;P&gt;If app equals anything else, i want the value to be false.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Below is the eval i have, buts its not working:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval description=if('app'=="linux", host. "-" .alert_type',  'app'==windows, host. "-" .severity, "false")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 19:06:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-new-field-using-other-field-values-concatenated/m-p/699437#M237437</guid>
      <dc:creator>scout29</dc:creator>
      <dc:date>2024-09-18T19:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new field using other field values concatenated</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-new-field-using-other-field-values-concatenated/m-p/699438#M237438</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;| eval description=if('app'=="linux", host. "-" .alert_type',&amp;nbsp; 'app'==windows, host. "-" .severity, "false")&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;You didn't nest the second IF statement&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;| eval description=if('app'=="linux", host. "-" .alert_type',if('app'==windows, host. "-" .severity, "false"))&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Sep 2024 16:31:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-new-field-using-other-field-values-concatenated/m-p/699438#M237438</guid>
      <dc:creator>dural_yyz</dc:creator>
      <dc:date>2024-09-18T16:31:15Z</dc:date>
    </item>
  </channel>
</rss>

