dlandon Posted December 20, 2015 Share Posted December 20, 2015 (edited) 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. The plugin can be installed through "Community Applications". The plugin adds an "Enhanced Log" entry in the Tools tab. 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. Syslog Filter There are times when debug or other repeating log entries will clog up the Syslog. You can filter out these log entries from appearing at all in the Syslog. The filter apples to log entries in Unraid Syslog and the Syslog Server logs. Enter the text in the "Syslog FiIlter" that you want filtered and then click apply. Each entry is on a separate line and needs to have a leading and training double quote. Click apply to apply the filter. You only use the log message itself and not the date/time or source for the filter. For example: Dec 15 11:04:02 BackupServer unassigned.devices: Removing old config... To filter this log entry, enter this: "Removing old config..." into the Syslog Filter dialog. Edited December 15, 2019 by dlandon 1 Quote Link to comment
CHBMB Posted December 20, 2015 Share Posted December 20, 2015 Just had a quick look at this, waves of nostalgia and a warm glow. Thanks dlandon, awesome work as always... Quote Link to comment
dlandon Posted December 20, 2015 Author Share Posted December 20, 2015 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. Quote Link to comment
abs0lut.zer0 Posted December 20, 2015 Share Posted December 20, 2015 thank you for this can you add this [see attachment] to the top of the window..? please? Quote Link to comment
dlandon Posted December 20, 2015 Author Share Posted December 20, 2015 thank you for this can you add this [see attachment] to the top of the window..? please? New version released that includes the legend. Quote Link to comment
barakthecat Posted December 20, 2015 Share Posted December 20, 2015 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. Quote Link to comment
dlandon Posted December 20, 2015 Author Share Posted December 20, 2015 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. Quote Link to comment
Capt.Insano Posted December 20, 2015 Share Posted December 20, 2015 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 Quote Link to comment
TheWombat Posted December 20, 2015 Share Posted December 20, 2015 Perfect, just what I was looking for. thanks Alex Quote Link to comment
bkastner Posted December 21, 2015 Share Posted December 21, 2015 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. Quote Link to comment
abs0lut.zer0 Posted December 21, 2015 Share Posted December 21, 2015 thank you for this can you add this [see attachment] to the top of the window..? please? New version released that includes the legend. thank you Quote Link to comment
John_M Posted December 21, 2015 Share Posted December 21, 2015 Very nice. It makes searching through a log so much easier. One of the colours used (mid grey) doesn't appear in the legend. Quote Link to comment
kizer Posted December 21, 2015 Share Posted December 21, 2015 Found some REd.... Eeekkkkkkkkkkkkkkk Thanks for this. Quote Link to comment
interwebtech Posted December 21, 2015 Share Posted December 21, 2015 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). Quote Link to comment
dlandon Posted December 21, 2015 Author Share Posted December 21, 2015 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. Quote Link to comment
interwebtech Posted December 21, 2015 Share Posted December 21, 2015 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 Quote Link to comment
dlandon Posted December 21, 2015 Author Share Posted December 21, 2015 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. Quote Link to comment
trurl Posted December 21, 2015 Share Posted December 21, 2015 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. Quote Link to comment
dlandon Posted December 21, 2015 Author Share Posted December 21, 2015 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. Quote Link to comment
dlandon Posted December 22, 2015 Author Share Posted December 22, 2015 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. Quote Link to comment
interwebtech Posted December 22, 2015 Share Posted December 22, 2015 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. Quote Link to comment
dlandon Posted December 22, 2015 Author Share Posted December 22, 2015 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. Quote Link to comment
kizer Posted December 22, 2015 Share Posted December 22, 2015 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 Quote Link to comment
tr0910 Posted December 22, 2015 Share Posted December 22, 2015 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. Quote Link to comment
dlandon Posted December 22, 2015 Author Share Posted December 22, 2015 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. Implemented in the latest release. Quote Link to comment
Recommended Posts
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.