<?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: How to display the time in _time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-in-time/m-p/325602#M161372</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2017 06:33:16 GMT</pubDate>
    <dc:creator>nive00</dc:creator>
    <dc:date>2017-04-13T06:33:16Z</dc:date>
    <item>
      <title>How to display the time in _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-in-time/m-p/325600#M161370</link>
      <description>&lt;P&gt;I need to display the maximum count of users logged in per day (at what time).&lt;/P&gt;

&lt;P&gt;I am able to get the max user count from below query. but I am not sure on how to get the time at which maximo user's were logged in.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=hwm_* sourcetype=was:maximo:sysout UID=* OR uid=* asset_env=PROD  | eval username=coalesce(UID,uid) | timechart span=1h dc(username) as usercount | timechart span=1d max(usercount)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Apr 2017 10:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-in-time/m-p/325600#M161370</guid>
      <dc:creator>nive00</dc:creator>
      <dc:date>2017-04-12T10:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the time in _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-in-time/m-p/325601#M161371</link>
      <description>&lt;P&gt;If you want the maximum number of users attempting to login in an hour per day plus the hour that maximum occurred in, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=hwm_* sourcetype=was:maximo:sysout UID=* OR uid=* asset_env=PROD  | eval username=coalesce(UID,uid)
| bin _time span=1h | stats dc(username) as users by _time
| bin _time as day span=1d | eventstats max(users) as max by day
| where users=max | fields - day max
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note, this will yield multiple hours per day if the maximum occurs multiple times that day.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 12:15:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-in-time/m-p/325601#M161371</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2017-04-12T12:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the time in _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-in-time/m-p/325602#M161372</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 06:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-the-time-in-time/m-p/325602#M161372</guid>
      <dc:creator>nive00</dc:creator>
      <dc:date>2017-04-13T06:33:16Z</dc:date>
    </item>
  </channel>
</rss>

