FAQ  •  Register  •  Login

Monitoring Tool

<<

irdet2

Streaming enthusiast

Posts: 21

Joined: Sat Sep 06, 2014 1:22 pm

Post Wed Sep 10, 2014 7:05 pm

Monitoring Tool

Can I ask you if there is a sort of monitoring tool which shows info about who is watching (IP and/or device) , when and what is watching in order to keep a track of my server usage?


Thanks for your feedback
<<

adielk

Streaming enthusiast

Posts: 42

Joined: Fri Sep 05, 2014 5:02 pm

Post Wed Sep 10, 2014 11:21 pm

Re: Monitoring Tool

Parental control tool?
<<

irdet2

Streaming enthusiast

Posts: 21

Joined: Sat Sep 06, 2014 1:22 pm

Post Thu Sep 11, 2014 9:32 am

Re: Monitoring Tool

No!
No parental control!

Just to keep track of the logs...

For example : Samsung TV was connected at 10:33 and started watching the X movie...still watching
Android device connected at 10:44 and started watching the B movie...finished watching at 10:55


I am talking about a real-time monitoring tool of the Server.
<<

EricGDP

Serviio newbie

Posts: 1

Joined: Sat Sep 13, 2014 12:40 pm

Post Sat Sep 13, 2014 12:42 pm

Re: Monitoring Tool

Yes, the ability to see a log of who connected when and from what IP would be very useful.

Eric
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Sep 13, 2014 3:42 pm

Re: Monitoring Tool

All that is shown in the debug log.
<<

atc98092

User avatar

DLNA master

Posts: 5440

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sun Sep 14, 2014 1:04 am

Re: Monitoring Tool

jhb50 wrote:All that is shown in the debug log.


But the debug log grows large quickly, and has much more info than they are looking for. I've seen a couple of other DLNA servers that provided a current user activity list, but since the rest of the server didn't work for beans, I didn't try it for long. Can't even remember which others I've tried.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Sep 14, 2014 4:22 am

Re: Monitoring Tool

You can set up the log for what ever you want. I set it to debug (see below) and the exclude all those that I do not want.
If you only want a few message types, I think you can set the log to info and use debug on just the types you want to debug.
You can copy and change the SERVIIO.jar file to .zip then use Express Zip to find the path to the class that displays those messages and add it as below.

You can appreciate there are so many variations of logs that people want that they cannot be preprogrammed, but users could post their log4j customizations.
There is also a tool in the forum to process the log file for the info you want.

  Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<!-- ===================================================================== -->
<!--                                                                       -->
<!--  Log4j Configuration                      -->
<!--                                                            -->
<!--  The levels of logging are TRACE, DEBUG, INFO, WARN, ERROR and FATAL  -->
<!--                                                            -->
<!--  FATAL:    shows messages at a FATAL level only              -->
<!--  ERROR:    Shows messages classified as ERROR and FATAL           -->
<!--  WARNING:    Shows messages classified as WARNING thru FATAL       -->
<!--  INFO:    Shows messages classified as INFO thru FATAL           -->
<!--  DEBUG:    Shows messages classified as DEBUG thru FATAL         -->
<!--  TRACE :    Shows messages classified as TRACE thru FATAL              -->                                                          
<!--                                                            -->
<!-- ===================================================================== -->

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

    <appender name="FILE" class="org.apache.log4j.RollingFileAppender">
       <param name="Threshold" value="DEBUG"/>
       <param name="Append" value="true" />
      <param name="File" value="${serviio.home}/log/serviio.log" />
      <param name="MaxFileSize" value="10000KB" />
      <param name="MaxBackupIndex" value="3" />   
      <param name="Encoding" value="UTF-8" />   
      <layout class="org.apache.log4j.PatternLayout">
         <param name="ConversionPattern" value="%d{ISO8601} %-5p [%c{1}] %m%n"/>
      </layout>
   </appender>
   
   <category name="org.serviio">
      <priority value="DEBUG"/>
   </category>
     
   <!-- Turn off AddTerm Messages -->
   <category name="org.serviio.library.search.SearchIndexer">
      <priority value="INFO"/>
   </category>

   <!-- Turn off Local Library Messages -->
   <category name="org.serviio.library.local">
      <priority value="INFO"/>
   </category>

   <!-- Debug Online Feeds -->
   <category name="org.serviio.library.online">
      <priority value="DEBUG"/>
   </category>

   <!-- Turn off AccessGroupDAOImpl Messages -->
   <category name="org.serviio.library.dao">
      <priority value="INFO"/>
   </category>

   <!-- Turn off M-Search Messages -->
   <category name="org.serviio.upnp.discovery"> 
      <priority value="ERROR"/>
   </category>

   <!-- Turn off invalid essence Messages -->

   <category name="org.serviio.library.online.metadata.FeedUpdaterThread"> 
      <priority value="INFO"/>
   </category>

   <!-- Turn off Other Messages -->

   <category name="org.serviio.upnp.service.contentdirectory.rest.resources.server.CDSRetrieveMediaServerResource"> 
      <priority value="ERROR"/>
   </category>

   <category name="org.serviio.delivery.CoverImageRetrievalStrategy"> 
      <priority value="ERROR"/>
   </category>
     
   <category name="org.serviio.delivery.GETMethodProcessor"> 
      <priority value="ERROR"/>
   </category>

   <category name="org.serviio.delivery.MediaResourceRetrievalStrategy"> 
      <priority value="ERROR"/>
   </category>

   <category name="org.serviio.delivery.ResourceDeliveryProcessor"> 
      <priority value="ERROR"/>
   </category>

   <category name="org.serviio.delivery.resource.VideoDeliveryEngine"> 
      <priority value="ERROR"/>
   </category>

   <category name="org.serviio.library.search.SearchManager"> 
      <priority value="ERROR"/>
   </category>

   <!-- End of Other Messages -->

   <category name="com.sun.syndication">
      <priority value="ERROR"/>
   </category>
   
   <category name="org.jaudiotagger">
      <priority value="ERROR"/>
   </category>
   
   <category name="org.restlet">
      <priority value="ERROR"/>
   </category>
   
   <category name="org.apache.jcs">
      <priority value="WARN"/>
   </category>
   
   <root>
      <priority value="INFO"/>
      <appender-ref ref="FILE"/>
   </root>   
   
</log4j:configuration>
<<

irdet2

Streaming enthusiast

Posts: 21

Joined: Sat Sep 06, 2014 1:22 pm

Post Sun Sep 14, 2014 10:14 am

Re: Monitoring Tool

OK! Maybe I wasn't clear enough.

I know that all info are available in the log!

But I don't want to go through the log every time!

I was looking for a GUI (perhaps an addition at the Console?) that provides these kind of information.

If something is not available maybe we could built one using freely available tools...
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Sep 14, 2014 2:05 pm

Re: Monitoring Tool

Great idea. Go ahead and post in 3rd party tools.

Return to Serviio Support & Help

Who is online

Users browsing this forum: Baidu [Spider] and 31 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.