<?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 format output of a string in a particular format? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/format-output-of-a-string-in-a-particular-format/m-p/367015#M108252</link>
    <description>&lt;P&gt;I have a search query that returns numbers like 170503007 and 170504021 as outputs. Need to format them as 2017/05/03 007 and 2017/05/04 021&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2017 11:05:22 GMT</pubDate>
    <dc:creator>erhksadhwani</dc:creator>
    <dc:date>2017-05-08T11:05:22Z</dc:date>
    <item>
      <title>format output of a string in a particular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/format-output-of-a-string-in-a-particular-format/m-p/367015#M108252</link>
      <description>&lt;P&gt;I have a search query that returns numbers like 170503007 and 170504021 as outputs. Need to format them as 2017/05/03 007 and 2017/05/04 021&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 11:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/format-output-of-a-string-in-a-particular-format/m-p/367015#M108252</guid>
      <dc:creator>erhksadhwani</dc:creator>
      <dc:date>2017-05-08T11:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: format output of a string in a particular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/format-output-of-a-string-in-a-particular-format/m-p/367016#M108253</link>
      <description>&lt;P&gt;Here's one way.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=foo "(?&amp;lt;yr&amp;gt;\d\d)(?&amp;lt;mon&amp;gt;\d\d)(?&amp;lt;day&amp;gt;\d\d)(?&amp;lt;num&amp;gt;\d{3})" | eval output="20".yr."/".mon."/".day." ".num | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 May 2017 14:13:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/format-output-of-a-string-in-a-particular-format/m-p/367016#M108253</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-05-08T14:13:37Z</dc:date>
    </item>
  </channel>
</rss>

