<?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 Bucket against field other than _time in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Bucket-against-field-other-than-time/m-p/325315#M12156</link>
    <description>&lt;P&gt;Can I use the bucket command to group fields by time/date when extracted against a field other than _time?&lt;/P&gt;

&lt;P&gt;I have a field called pub date in this format; 2017-10-04 09:00:27&lt;/P&gt;

&lt;P&gt;and was hoping the following would group the events into buckets of 6 hours;&lt;/P&gt;

&lt;P&gt;index=* | bucket pubdate span=6h | stats count by pub date&lt;/P&gt;

&lt;P&gt;Dosent seem to work, just lists all the individual events.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2017 21:10:28 GMT</pubDate>
    <dc:creator>jacqu3sy</dc:creator>
    <dc:date>2017-10-24T21:10:28Z</dc:date>
    <item>
      <title>Bucket against field other than _time</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Bucket-against-field-other-than-time/m-p/325315#M12156</link>
      <description>&lt;P&gt;Can I use the bucket command to group fields by time/date when extracted against a field other than _time?&lt;/P&gt;

&lt;P&gt;I have a field called pub date in this format; 2017-10-04 09:00:27&lt;/P&gt;

&lt;P&gt;and was hoping the following would group the events into buckets of 6 hours;&lt;/P&gt;

&lt;P&gt;index=* | bucket pubdate span=6h | stats count by pub date&lt;/P&gt;

&lt;P&gt;Dosent seem to work, just lists all the individual events.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 21:10:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Bucket-against-field-other-than-time/m-p/325315#M12156</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2017-10-24T21:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bucket against field other than _time</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Bucket-against-field-other-than-time/m-p/325316#M12157</link>
      <description>&lt;P&gt;Thats is possible, but you need to convert pubdate from string to time field like below.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval pubdate_time=strptime(pubdate, "%Y-%m-%d %H:%M:%S") | bin span=6h pubdate_time&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 21:32:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Bucket-against-field-other-than-time/m-p/325316#M12157</guid>
      <dc:creator>kyaparla</dc:creator>
      <dc:date>2017-10-24T21:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bucket against field other than _time</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Bucket-against-field-other-than-time/m-p/325317#M12158</link>
      <description>&lt;P&gt;that makes sense. thanks. &lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 22:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Bucket-against-field-other-than-time/m-p/325317#M12158</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2017-10-24T22:01:15Z</dc:date>
    </item>
  </channel>
</rss>

