<?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 How to replace number field values with a string? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-replace-number-field-values-with-a-string/m-p/505999#M8149</link>
    <description>&lt;P&gt;Hi! I am trying to rename field values from a number to a string like this:&lt;/P&gt;&lt;P&gt;I calculated whether the project has been past due or not by subtracting today's date minus project ask date:&amp;nbsp;&lt;/P&gt;&lt;P&gt;| eval "Past/Future"=round(abs((relative_time(now(), "@d")-relative_time(strptime(project_ask_date,"%Y-%m-%d %H:%M:%S"), "@d"))/86400),0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i want to rename the field values:&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the number is &amp;gt;0 then it is past due, otherwise the project's due date is in the future.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jun 2020 15:51:36 GMT</pubDate>
    <dc:creator>yvassilyeva</dc:creator>
    <dc:date>2020-06-24T15:51:36Z</dc:date>
    <item>
      <title>How to replace number field values with a string?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-replace-number-field-values-with-a-string/m-p/505999#M8149</link>
      <description>&lt;P&gt;Hi! I am trying to rename field values from a number to a string like this:&lt;/P&gt;&lt;P&gt;I calculated whether the project has been past due or not by subtracting today's date minus project ask date:&amp;nbsp;&lt;/P&gt;&lt;P&gt;| eval "Past/Future"=round(abs((relative_time(now(), "@d")-relative_time(strptime(project_ask_date,"%Y-%m-%d %H:%M:%S"), "@d"))/86400),0)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i want to rename the field values:&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the number is &amp;gt;0 then it is past due, otherwise the project's due date is in the future.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 15:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-replace-number-field-values-with-a-string/m-p/505999#M8149</guid>
      <dc:creator>yvassilyeva</dc:creator>
      <dc:date>2020-06-24T15:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace number field values with a string?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-replace-number-field-values-with-a-string/m-p/506015#M8150</link>
      <description>&lt;P&gt;To be picky, rename changes the name of a field rather than change the value itself.&amp;nbsp; To change a value you can use &lt;FONT face="courier new,courier"&gt;eval&lt;/FONT&gt;.&amp;nbsp; BTW, I used a different field name because slashes are not valid field name characters.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | eval PastFuture = if(PastFuture&amp;gt;=0, "Past Due", "Future")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 17:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-replace-number-field-values-with-a-string/m-p/506015#M8150</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-24T17:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace number field values with a string?</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-replace-number-field-values-with-a-string/m-p/506028#M8152</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 18:38:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-replace-number-field-values-with-a-string/m-p/506028#M8152</guid>
      <dc:creator>yvassilyeva</dc:creator>
      <dc:date>2020-06-24T18:38:27Z</dc:date>
    </item>
  </channel>
</rss>

