Jump to content
dlandon

Enhanced Log view with lines highlighted in color

84 posts in this topic Last Reply

Recommended Posts

This is a plugin that was inspired by the unmenu log view that highlighted certain lines in the log in color for ease in finding significant events.  Each line of the log is checked for events that may be significant and they are highlighted in a color representative of that event.  I used unmenu when I was on Unraid V4 and really liked the highlighted log feature.

 

The event strings that are searched were taken from the unmenu syslog configuration file.  Those event strings were mostly developed in the V4 days and are not totally up to the V6 events.  For example the only file system in those days was reiserfs. Now Unraid includes xfs and btrfs.  I expect that additional event strings will be added because of the V6 changes.

 

This is the link to download the enhanced log plugin:

https://github.com/dlandon/enhanced.log/raw/master/enhanced.log.plg
 
The plugin can also be installed through "Community Applications".

 

The plugin replaces the built in System Log'' to view the enhanced log.  There is an icon in the 'Settings' page to configure which log events are highlighted - "Errors", "Minor Issues", etc.  This allows you to highlight only the areas you want to view.  You can also set the colors you want for the various log events.

 

If you feel there are events in the log that need to be highlighted, please post a snipet of the log with those events so I can add the search strings to highlight the log event.

Edited by dlandon

Share this post


Link to post

Just had a quick look at this, waves of nostalgia and a warm glow.  ;D

 

Thanks dlandon, awesome work as always...

Share this post


Link to post

It does take a guy back to the V4 days.  The syslog view in unmenu was a feature I really liked.  Made searching for significant events much easier.

 

Don't know why I didn't do this sooner.

Share this post


Link to post

thank you for this

 

can you add this [see attachment] to the top of the window..?

 

please? ;D

 

New version released that includes the legend.

Share this post


Link to post

Love it, but I'm having a display issue on my MacBook Pro 13". If I have Safari running at full screen, the log itself is shoved over to the right of the screen (see picture below). If I am not running full screen it works fine, except that then the WebGUI toolbar does't fit anymore.

 

Screen_Shot_2015-12-20_at_10_27.41_AM.png.73a621b3a5e5835a3286af3c8f3d6f9f.png

Share this post


Link to post

Love it, but I'm having a display issue on my MacBook Pro 13". If I have Safari running at full screen, the log itself is shoved over to the right of the screen (see picture below). If I am not running full screen it works fine, except that then the WebGUI toolbar does't fit anymore.

 

Update and try it.

Share this post


Link to post

Any chance the legend could be put in a floating frame or something similar so that if I am scrolling through the log I don't need to go back up to the top of the page to check the colour legend?

 

Also is there a colour for docker errors? I know Docker was not around in the unMENU days!!

 

 

Thanks

Share this post


Link to post

Great to see this function back again. I agree, it makes reviewing your log file much easier.

 

Would it be easy to select/deselect the colors like we could in UnRAID? It would be great to just filter on warnings/errors for instance.

Share this post


Link to post

thank you for this

 

can you add this [see attachment] to the top of the window..?

 

please? ;D

 

New version released that includes the legend.

 

thank you  :D

Share this post


Link to post

Very nice. It makes searching through a log so much easier. One of the colours used (mid grey) doesn't appear in the legend.

Share this post


Link to post

This is great. I was able to spot a cache_dirs error I had missed with the plain logs (folder included that no longer exists). I see some false positive RED formatting logging the install of Nerdpack on boot (innocuous word matches me thinks).

Share this post


Link to post

This is great. I was able to spot a cache_dirs error I had missed with the plain logs (folder included that no longer exists). I see some false positive RED formatting logging the install of Nerdpack on boot (innocuous word matches me thinks).

 

Post that red log entry and I'll see if I can revise the search strings to skip that.

Share this post


Link to post

false positive red entries

 

Dec 17 14:30:48 Tower logger: # calls and dumping the information to the standard error.  System

 

Dec 17 14:30:50 Tower logger: # is reliable, that is any non-fatal error is ignored and the operation

 

Dec 17 14:31:14 Tower logger: # supported by the Linux kernel.  Apple provides mkfs and fsck for

 

 

Share this post


Link to post

I can see why the first two are listed because they explicitly have the word "error" in the message. I think those would require explicit false positive phrase rejection to keep it from showing up.

 

Not sure on the last one, unless the word "kernel" is a trigger.

 

 

 

 

Then again perhaps it's the word Apple, which is very dangerous. ;)

 

Share this post


Link to post

I can see why the first two are listed because they explicitly have the word "error" in the message. I think those would require explicit false positive phrase rejection to keep it from showing up.

 

Not sure on the last one, unless the word "kernel" is a trigger.

 

 

 

 

Then again perhaps it's the word Apple, which is very dangerous. ;)

 

1. Error is the match.

2. fsck is the match.  Not sure why 'fsck' is in the search list.

Share this post


Link to post

2. fsck is the match.  Not sure why 'fsck' is in the search list.

Probably because it would show up when flash corruption was detected.

Share this post


Link to post

I've changed the location of the log view icon to 'Tools->System Information' and added a settings gui to the 'Settings' tab to permit you to select only the events you want highlighted in the log.

Share this post


Link to post

false positive red entries

 

Dec 17 14:30:48 Tower logger: # calls and dumping the information to the standard error.  System

 

Dec 17 14:30:50 Tower logger: # is reliable, that is any non-fatal error is ignored and the operation

 

Dec 17 14:31:14 Tower logger: # supported by the Linux kernel.  Apple provides mkfs and fsck for

 

Thise are comment lines.  I've made it so those are skipped.

Share this post


Link to post

false positive red entries

 

Dec 17 14:30:48 Tower logger: # calls and dumping the information to the standard error.  System

 

Dec 17 14:30:50 Tower logger: # is reliable, that is any non-fatal error is ignored and the operation

 

Dec 17 14:31:14 Tower logger: # supported by the Linux kernel.  Apple provides mkfs and fsck for

Thise are comment lines.  I've made it so those are skipped.

 

 

Cool. I was going to post the false positive BLUE lines but they too are comment lines and figured you might go this route for filtering.  :)

Share this post


Link to post

New release is available.

 

New features:

- You can now set which types of log events you want highlighted and the color used for each event.  The colors can be entered by name or color number.

- The log can be scrolled and the color legend will not scroll off the page.

- Comment lines are no longer highlighted.

 

I will probably take the beta status off this plugin in a few days.

 

EDIT: To get the color selection feature to work, uninstall and then re-install the plugin.

Share this post


Link to post

I like the new settings. Just didn't realize I had to hit the default button to populate the colors. No matter, but works great now after I've upgraded to 2015.12.22

Share this post


Link to post

 

 

Would it be easy to select/deselect the colors like we could in UnMenu? It would be great to just filter on warnings/errors for instance.

 

+1 for the filtering request.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.