Ad Widget

Collapse

Monitor a multiline log.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pbsko
    Junior Member
    • Oct 2022
    • 1

    #1

    Monitor a multiline log.

    Hello,

    This is the situation.

    I have a log file who i check when an error ocurs, the data is not relevant but is something like this

    *************************
    Plant: 332
    Colour: Red
    Number: 3
    Code: 232

    *************************
    Plant: 332
    Colour: Red
    Number: 3
    Code: 233

    *************************
    ​Plant: 332
    Colour: Red
    Number: 3
    Code: 234
    Error code 234 dont exist

    *************************

    Until now i was just checking for the error and if it happens i send and email with the line with the error.

    The question is, is this a way to send previous lines in the email with logrt or with user.parameter, everytime something is writed in the log the ***************** is writtern before if it helps.

    thanks in advance.​
Working...