<?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 return events with null values in an eval function in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/return-events-with-null-values-in-an-eval-function/m-p/157063#M44201</link>
    <description>&lt;P&gt;I am using the below query, but few events in the logs don't have service_name values. They only have operation_name. I need to include these events in the results with only the operation name. Please help me.&lt;/P&gt;

&lt;P&gt;index=jms_logs sourcetype=perflogs | eval service_operation = service_name.".".operation_name | table service_operation | dedup service_operation | sort service_operation&lt;/P&gt;

&lt;P&gt;thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:25:44 GMT</pubDate>
    <dc:creator>edookati</dc:creator>
    <dc:date>2020-09-28T18:25:44Z</dc:date>
    <item>
      <title>return events with null values in an eval function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/return-events-with-null-values-in-an-eval-function/m-p/157063#M44201</link>
      <description>&lt;P&gt;I am using the below query, but few events in the logs don't have service_name values. They only have operation_name. I need to include these events in the results with only the operation name. Please help me.&lt;/P&gt;

&lt;P&gt;index=jms_logs sourcetype=perflogs | eval service_operation = service_name.".".operation_name | table service_operation | dedup service_operation | sort service_operation&lt;/P&gt;

&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/return-events-with-null-values-in-an-eval-function/m-p/157063#M44201</guid>
      <dc:creator>edookati</dc:creator>
      <dc:date>2020-09-28T18:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: return events with null values in an eval function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/return-events-with-null-values-in-an-eval-function/m-p/157064#M44202</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=jms_logs sourcetype=perflogs | eval service_operation = coalesce(service_name.".","").operation_name | stats count by service_operation | table sort service_operation
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The stats will automatically remove duplicates and sort.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 19:00:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/return-events-with-null-values-in-an-eval-function/m-p/157064#M44202</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-12-11T19:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: return events with null values in an eval function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/return-events-with-null-values-in-an-eval-function/m-p/157065#M44203</link>
      <description>&lt;P&gt;thanks. it worked&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 20:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/return-events-with-null-values-in-an-eval-function/m-p/157065#M44203</guid>
      <dc:creator>edookati</dc:creator>
      <dc:date>2014-12-11T20:49:50Z</dc:date>
    </item>
  </channel>
</rss>

