carina-studio / ULogViewer

Cross-Platform Universal Log Viewer.
https://carina-studio.github.io/ULogViewer/
MIT License
411 stars 41 forks source link

How can i use it for switch logs #23

Open SebUll opened 1 year ago

SebUll commented 1 year ago

Hi is there any way to use it for logs from network switches? It would be great to use it for 😄

keep save

hamster620 commented 1 year ago

@SebUll What tools you are using now to get logs from switch? It would be easy if there is a command line tool for that.

SebUll commented 1 year ago

@hamster620 I download the logs either from the systems via WebGui or from the terminal via command. At the end I can save the file with a suitable extension. Currently I have then used LogFile viewer but not very much comfort. Therefore I would be happy if I could simply open files with a special extension and then change the keywords depending on the switch to mark them in color and search.

hamster620 commented 1 year ago

@SebUll You can provide a sample log file to me so that I can create a simple log profile for you to import, thanks.

SebUll commented 1 year ago

@hamster620 I can't provide log files but a page where the content is explained and parts are listed as an example.

https://techhub.hpe.com/eginfolib/networking/docs/switches/WB/15-18/5998-8162_wb_2920_mcg/content/ch11s06.html

hamster620 commented 1 year ago

@SebUll Please import the attached .json file as log profile and have a try on it. You can change the data source of log profile to Standard Output if you known how to download the log through command-line. Thanks.

HP Switch Event Log (GitHub).json.zip

SebUll commented 1 year ago

@hamster620 Thank you very much. This already works for the one Switch series. I still have 2 Switch series from HPE/Aruba and one from Mellanox that I would like to have in the one template to open. Would that be possible to pack these in a profile?

HPE FlexFabric https://techhub.hpe.com/eginfolib/networking/docs/switches/5700/5998-5609r_nmm_cr/content/446951203.htm

Aruba AOS-CX Series https://techhub.hpe.com/eginfolib/Aruba/OS-CX_10.04/5200-6872/index.html#GUID-CE139A14-F398-4B9C-A588-215E00131CEF.html#GUID-CE139A14-F398-4B9C-A588-215E00131CEF

and Mellanox SN2000 series maybe also other SN series https://docs.nvidia.com/networking/display/UFMSDNAppCLIGuidev451/Local+and+Remote+Logging

Many thanks for your efforts.

PS: This is the story with the little finger and the whole hand 😄

hamster620 commented 1 year ago

@SebUll Fortunately it is easier to put multiple different patterns in single log profile in v3.0😀. The problem is that I can only define patterns according to document without real log files to check, so maybe there are some logs with specific format cannot be parsed correctly.

Please check the attached file, thanks.

Switch Event Log Files (GitHub).json.zip

SebUll commented 1 year ago

@hamster620 Unfortunately, it didn't work out that way. I will see that I get a pair of logs together as an example and that they can then take them to review. I will get back to you as soon as possible. And again, thank you very much for the effort and all the support. When we have all this done we will surely send a donation for all the good work. :)