The problem which the higher ups generally need solved is, "How many people are/were on at <time>?" where <time> may be "now", "5:04:02 yesterday", or "between 2:00 and 10:00 two thursdays ago".

On trick for approaching this problem is to consider who is asking the question, and how much accuracy they really need. (They might say they want to be able to ask for the number of sessions at an arbitrary time, but will the go away happy if you give them a session count to the nearest five-minute interval?)

And if your "higher ups" are anything like what mine have been, they communicate using PowerPoint. Consider answering their questions in a similar way -- with a one page graphic.

Instead of building a fancy query facility, scan the logs once, and emit enough data to feed into your favorite graphing tool (I've used Excel) to produce a graph they can look at. Dropping out a datapoint every 5 minutes gives you more than enough data to build a nice line chart. You can even automate the process via Win32::OLE.

My bosses have appreciated it when I've given them stuff they can copy/paste into a PowerPoint slide.


In reply to Re: How to do session times The Right Way by dws
in thread How to do session times The Right Way by strider corinth

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.