<?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: Timestamp to Date Conversion in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-to-Date-Conversion/m-p/446743#M77722</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web  clientApp=MOBILE enterpriseId=prod locationID=Lima country=US command=item tagName=REMOTE_REQUEST
| bin _time span=1d
| top 0 showperc=f message.request.payload.upc BY _time
| rename message.request.payload.upc AS UPC count AS Count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web  clientApp=MOBILE enterpriseId=prod locationID=Lima country=US command=item tagName=REMOTE_REQUEST
| bin _time span=1d
| stats count AS Count BY message.request.payload.upc _time
| rename message.request.payload.upc AS UPC
| sort 0 - Count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Aug 2019 17:06:57 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-08-14T17:06:57Z</dc:date>
    <item>
      <title>Timestamp to Date Conversion</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-to-Date-Conversion/m-p/446742#M77721</link>
      <description>&lt;P&gt;I'm having an issue with a dashboard which is reporting UPC counts by day.&lt;BR /&gt;
If I use the following query, it gives the UPC counts, but not the date&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;index=web  clientApp=MOBILE enterpriseId=prod locationID=Lima country=US command=item tagName=REMOTE_REQUEST | top 0 showperc=f message.request.payload.upc | rename message.request.payload.upc as "UPC", count as "Count"&amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I add the timestamp into it like the following query, then it gives the count for every UPC as 1 because they have a unique timestamp.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;index=web  clientApp=MOBILE enterpriseId=prod locationID=Lima country=US command=item tagName=REMOTE_REQUEST | top 0 showperc=f message.request.payload.upc message.request.payload.Time | rename message.request.payload.upc as "UPC", count as "Count"&amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried every way i can find with eval and strptime and strftime to get it to give me just the year, month, day format, but I can't get it to show that.&lt;/P&gt;

&lt;P&gt;Admittedly I'm a noob, but I have searched for a couple days trying to find an answer and can't.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 16:34:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-to-Date-Conversion/m-p/446742#M77721</guid>
      <dc:creator>apautz22</dc:creator>
      <dc:date>2019-08-14T16:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to Date Conversion</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-to-Date-Conversion/m-p/446743#M77722</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web  clientApp=MOBILE enterpriseId=prod locationID=Lima country=US command=item tagName=REMOTE_REQUEST
| bin _time span=1d
| top 0 showperc=f message.request.payload.upc BY _time
| rename message.request.payload.upc AS UPC count AS Count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web  clientApp=MOBILE enterpriseId=prod locationID=Lima country=US command=item tagName=REMOTE_REQUEST
| bin _time span=1d
| stats count AS Count BY message.request.payload.upc _time
| rename message.request.payload.upc AS UPC
| sort 0 - Count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Aug 2019 17:06:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-to-Date-Conversion/m-p/446743#M77722</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-14T17:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp to Date Conversion</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-to-Date-Conversion/m-p/446744#M77723</link>
      <description>&lt;P&gt;They both worked - thank you very much for the assistance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 14:02:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-to-Date-Conversion/m-p/446744#M77723</guid>
      <dc:creator>apautz22</dc:creator>
      <dc:date>2019-08-15T14:02:20Z</dc:date>
    </item>
  </channel>
</rss>

