DX Infrastructure Manager

Expand all | Collapse all

Display multiple lines from log file of logmon

Jump to Best Answer
  • 1.  Display multiple lines from log file of logmon

    Posted 01-08-2020 10:26 PM
    Hello,

    Is there any way for us to configure in logmon,
    displaying multiple lines of the error from the logfile?
    Like for the attached screenshot, we want to display those two lines in the notification.

    Appreciate your help on this
    Thanks!


  • 2.  RE: Display multiple lines from log file of logmon

    Posted 01-09-2020 08:31 AM
    by default, logmon reads one line at a time.
    You could set up a format block the started on UTC [ERROR] and ended after 3 lines and then set a message variable up in the watcher rule to send the text block.


    ------------------------------
    Gene Howard
    Principal Support Engineer
    Broadcom
    ------------------------------



  • 3.  RE: Display multiple lines from log file of logmon

    Posted 01-09-2020 04:35 PM
    Hello Gene,

    Kindly check below logmon configurations I've done
    if I got it right based on your suggestion.

    Appreciate your help.
    Thank you!














  • 4.  RE: Display multiple lines from log file of logmon
    Best Answer

    Posted 01-09-2020 04:41 PM

    To me, that seems very generic but should work.
    I am not sure why you are doing anything with QOS.

    This is text information and can not be stored as QOS.

    Once you have created the variable add the variable to your alarm message.



    ------------------------------
    Gene Howard
    Principal Support Engineer
    Broadcom
    ------------------------------



  • 5.  RE: Display multiple lines from log file of logmon

    Posted 01-09-2020 05:35 PM
    Thanks Gene!
    I've already disabled the QOS,
    set Variable to Text Block
    and added ${var} in the Alarm message.