<?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 put working hours from each user by day in a time chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-put-working-hours-from-each-user-by-day-in-a-time-chart/m-p/361488#M106760</link>
    <description>&lt;P&gt;My search so far:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=notimportant EventID=4624 [ inputlookup users.csv | fields TargetUserName ]  | chart eval(latest(_time) - earliest(_time)) as total by TargetUserName | fieldformat total=strftime(total, "%H:%M")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'm doing is:&lt;/P&gt;

&lt;P&gt;Get the earliest event from the result and the latest event from the result (the results are Microsoft login events). Subtracting the logout time from the login time so I get the working times.&lt;/P&gt;

&lt;P&gt;Problems: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;I cannot display times in a time/timechart (when I remove the ":" characters the chart works).&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;When I change the type from chart --&amp;gt; timechart the entry's in the timechart are displayed by the long number notations (not human readable, I forgot the name of this notation).&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;All I want is the working hours from each user by day, thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 12:10:18 GMT</pubDate>
    <dc:creator>rens78</dc:creator>
    <dc:date>2017-08-10T12:10:18Z</dc:date>
    <item>
      <title>How to put working hours from each user by day in a time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-put-working-hours-from-each-user-by-day-in-a-time-chart/m-p/361488#M106760</link>
      <description>&lt;P&gt;My search so far:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=notimportant EventID=4624 [ inputlookup users.csv | fields TargetUserName ]  | chart eval(latest(_time) - earliest(_time)) as total by TargetUserName | fieldformat total=strftime(total, "%H:%M")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'm doing is:&lt;/P&gt;

&lt;P&gt;Get the earliest event from the result and the latest event from the result (the results are Microsoft login events). Subtracting the logout time from the login time so I get the working times.&lt;/P&gt;

&lt;P&gt;Problems: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;I cannot display times in a time/timechart (when I remove the ":" characters the chart works).&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;When I change the type from chart --&amp;gt; timechart the entry's in the timechart are displayed by the long number notations (not human readable, I forgot the name of this notation).&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;All I want is the working hours from each user by day, thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 12:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-put-working-hours-from-each-user-by-day-in-a-time-chart/m-p/361488#M106760</guid>
      <dc:creator>rens78</dc:creator>
      <dc:date>2017-08-10T12:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to put working hours from each user by day in a time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-put-working-hours-from-each-user-by-day-in-a-time-chart/m-p/361489#M106761</link>
      <description>&lt;P&gt;Try this ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=notimportant EventID=4624 [ inputlookup users.csv | fields TargetUserName ] 
| bin _time as myday span=1d
| stats min(_time) as mintime max(_time) as maxtime by TargetUserName myday
| eval TotalHours = round((maxtime-mintime)/3600,2)
| rename mintime as _time
| timechart span=1d  sum(TotalHours) as TotalHours by TargetUserName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2017 14:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-put-working-hours-from-each-user-by-day-in-a-time-chart/m-p/361489#M106761</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-10T14:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to put working hours from each user by day in a time chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-put-working-hours-from-each-user-by-day-in-a-time-chart/m-p/361490#M106762</link>
      <description>&lt;P&gt;Awsome!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 08:36:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-put-working-hours-from-each-user-by-day-in-a-time-chart/m-p/361490#M106762</guid>
      <dc:creator>rens78</dc:creator>
      <dc:date>2017-08-14T08:36:07Z</dc:date>
    </item>
  </channel>
</rss>

