<?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: room usage over a time range in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/room-usage-over-a-time-range/m-p/39164#M798</link>
    <description>&lt;P&gt;Great example of the results that you want. Can you also show a few lines of the log file that you are putting into Splunk?&lt;/P&gt;</description>
    <pubDate>Mon, 19 Nov 2012 20:08:40 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-11-19T20:08:40Z</dc:date>
    <item>
      <title>room usage over a time range</title>
      <link>https://community.splunk.com/t5/Reporting/room-usage-over-a-time-range/m-p/39163#M797</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We have some logs generated by video conference systems that we use to create utilization and quality report.    Now,  we would like to create a report showing room usage by time of day.    The log data has the following fields&lt;/P&gt;

&lt;P&gt;Room Name, Meeting Start time and Duration&lt;/P&gt;

&lt;P&gt;So lets assume that room A3 has a meeting at 4:00 PM for 90 Minutes.   I would like to create a report that looks like this:&lt;/P&gt;

&lt;P&gt;Time    Room A3 Active&lt;/P&gt;

&lt;P&gt;15:00   No&lt;BR /&gt;&lt;BR /&gt;
15:15   No&lt;BR /&gt;&lt;BR /&gt;
15:30   No&lt;BR /&gt;&lt;BR /&gt;
15:45   No&lt;BR /&gt;&lt;BR /&gt;
16:00   Yes&lt;BR /&gt;&lt;BR /&gt;
16:15   Yes&lt;BR /&gt;&lt;BR /&gt;
16:30   Yes&lt;BR /&gt;&lt;BR /&gt;
16:45   Yes&lt;BR /&gt;&lt;BR /&gt;
17:00   Yes&lt;BR /&gt;&lt;BR /&gt;
17:15   Yes&lt;BR /&gt;&lt;BR /&gt;
17:30   Yes&lt;BR /&gt;&lt;BR /&gt;
17:45   No&lt;BR /&gt;&lt;BR /&gt;
18:00   No&lt;BR /&gt;&lt;BR /&gt;
18:15   No&lt;BR /&gt;&lt;BR /&gt;
18:30   No  &lt;/P&gt;

&lt;P&gt;I know we can do this in Excel but I would like to move to this to Splunk but I can't figure this out.  Anyone have any ideas?  &lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 20:01:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/room-usage-over-a-time-range/m-p/39163#M797</guid>
      <dc:creator>hgran</dc:creator>
      <dc:date>2012-11-19T20:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: room usage over a time range</title>
      <link>https://community.splunk.com/t5/Reporting/room-usage-over-a-time-range/m-p/39164#M798</link>
      <description>&lt;P&gt;Great example of the results that you want. Can you also show a few lines of the log file that you are putting into Splunk?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 20:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/room-usage-over-a-time-range/m-p/39164#M798</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-11-19T20:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: room usage over a time range</title>
      <link>https://community.splunk.com/t5/Reporting/room-usage-over-a-time-range/m-p/39165#M799</link>
      <description>&lt;P&gt;Room_Name Type         Start_time   Duration&lt;BR /&gt;&lt;BR /&gt;
K1    CTS-3000  4/2/2012 5:00   60&lt;BR /&gt;&lt;BR /&gt;
P1    H.323 HD 3M   4/2/2012 5:00   60&lt;BR /&gt;&lt;BR /&gt;
SC1   CTS-1300  4/2/2012 16:01  46  &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Henry&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:49:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/room-usage-over-a-time-range/m-p/39165#M799</guid>
      <dc:creator>hgran</dc:creator>
      <dc:date>2020-09-28T12:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: room usage over a time range</title>
      <link>https://community.splunk.com/t5/Reporting/room-usage-over-a-time-range/m-p/39166#M800</link>
      <description>&lt;P&gt;Tricky, I've had to do this myself, and would love to see a better solution.&lt;/P&gt;

&lt;P&gt;The concurrency command only tells you how many events were occuring at the time of an event, so you have to generate your own 'events' (using gentimes) if you want a continuous output. Since concurrency has no 'by' clause, we have to create the booking table for each room using 'map' then combine the outputs using 'chart'&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;......
| dedup room 
| addinfo
| eval info_min_time=strftime(info_min_time,"%m/%d/%y") 
| eval info_max_time=strftime(info_max_time+86400,"%m/%d/%y") 
| map search="search room=\"$room$\" 
              | append [ | gentimes start=$info_min_time$ end=$info_max_time$ increment=15m
                         | eval _time=starttime 
                         | eval duration=0 
                         | fields _time duration
                       ] 
              | eval duration=duration*60 
              | eval room=\"$room$\" 
              | concurrency duration=duration start=_time 
              | eval used=if(concurrency&amp;gt;1,\"Yes\",\"No\") 
              | stats max(room) as room max(used) as used by _time" 
| eval Time=strftime(_time,"%H:%M") 
| chart limit=0 first(used) as used over Time by room
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Nov 2012 23:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/room-usage-over-a-time-range/m-p/39166#M800</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2012-11-19T23:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: room usage over a time range</title>
      <link>https://community.splunk.com/t5/Reporting/room-usage-over-a-time-range/m-p/39167#M801</link>
      <description>&lt;P&gt;Thanks That works!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 00:01:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/room-usage-over-a-time-range/m-p/39167#M801</guid>
      <dc:creator>hgran</dc:creator>
      <dc:date>2012-11-20T00:01:43Z</dc:date>
    </item>
  </channel>
</rss>

