<?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: extend a field value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extend-a-field-value/m-p/62396#M15403</link>
    <description>&lt;P&gt;Assuming that you have a field &lt;CODE&gt;num_field&lt;/CODE&gt; that needs to be zero-padded into 6 characters, and that the value of the field does not exceed 999999;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval num_field = "000000" . num_field | eval num_field = substr(num_field, -6)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2013 08:50:51 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-06-13T08:50:51Z</dc:date>
    <item>
      <title>extend a field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extend-a-field-value/m-p/62395#M15402</link>
      <description>&lt;P&gt;hello,&lt;BR /&gt;
i want to extend a number field to a defined length like:&lt;/P&gt;

&lt;P&gt;1324 to 001234&lt;BR /&gt;
45678 to 045678&lt;/P&gt;

&lt;P&gt;How could i do that on a simple way?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2013 08:32:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extend-a-field-value/m-p/62395#M15402</guid>
      <dc:creator>Oti47</dc:creator>
      <dc:date>2013-06-13T08:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: extend a field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extend-a-field-value/m-p/62396#M15403</link>
      <description>&lt;P&gt;Assuming that you have a field &lt;CODE&gt;num_field&lt;/CODE&gt; that needs to be zero-padded into 6 characters, and that the value of the field does not exceed 999999;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval num_field = "000000" . num_field | eval num_field = substr(num_field, -6)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2013 08:50:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extend-a-field-value/m-p/62396#M15403</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-06-13T08:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: extend a field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extend-a-field-value/m-p/62397#M15404</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
yes it works.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2013 08:53:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extend-a-field-value/m-p/62397#M15404</guid>
      <dc:creator>Oti47</dc:creator>
      <dc:date>2013-06-13T08:53:56Z</dc:date>
    </item>
  </channel>
</rss>

