Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i use it for switch logs #23

Open
SebUll opened this issue Jul 18, 2023 · 8 comments
Open

How can i use it for switch logs #23

SebUll opened this issue Jul 18, 2023 · 8 comments

Comments

@SebUll
Copy link

SebUll commented Jul 18, 2023

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

keep save

@hamster620
Copy link
Collaborator

@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
Copy link
Author

SebUll commented Jul 18, 2023

@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
Copy link
Collaborator

@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
Copy link
Author

SebUll commented Jul 18, 2023

@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
Copy link
Collaborator

@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
Copy link
Author

SebUll commented Jul 21, 2023

@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
Copy link
Collaborator

@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
Copy link
Author

SebUll commented Jul 31, 2023

@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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants