<?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: How to normalize events with multiple keys? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-normalize-events-with-multiple-keys/m-p/213089#M62478</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | eval NodeName="Node".substr("000", coalesce(NodeId, Node), -3)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 18 Jun 2016 18:32:10 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-06-18T18:32:10Z</dc:date>
    <item>
      <title>How to normalize events with multiple keys?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-normalize-events-with-multiple-keys/m-p/213088#M62477</link>
      <description>&lt;P&gt;I have a couple of fields, &lt;STRONG&gt;Node&lt;/STRONG&gt; and &lt;STRONG&gt;NodeID&lt;/STRONG&gt;, which will both have a number. Then I have &lt;STRONG&gt;NodeName&lt;/STRONG&gt; which is of the format "Node001", so to make sure they all have a NodeName, I did this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval NodeName="Node".substr("000".NodeId,-3) | eval NodeName = "Node".substr("000".Node,-3)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, this seems rather wasteful. How would I combine this into one statement?  It's unlikely an event will have both Node and NodeID, but I'd have to dig through the data more&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 17:55:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-normalize-events-with-multiple-keys/m-p/213088#M62477</guid>
      <dc:creator>jrich523</dc:creator>
      <dc:date>2016-06-18T17:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to normalize events with multiple keys?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-normalize-events-with-multiple-keys/m-p/213089#M62478</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | eval NodeName="Node".substr("000", coalesce(NodeId, Node), -3)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Jun 2016 18:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-normalize-events-with-multiple-keys/m-p/213089#M62478</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-18T18:32:10Z</dc:date>
    </item>
  </channel>
</rss>

