DX Unified Infrastructure Management

  • 1.  logmon single line output needs treating as multi line

    Posted Nov 14, 2017 08:10 AM

    we have a json output which we will be using logmon to parse but the output is all in one line 

     

    {"udp://123.123.123.123:1201":false,"udp://123.123.123.124:1201":true,"udp://123.123.123.125:1201":false,"udp://123.123.123.126:1201":true,"udp://123.123.123.127:1201":true,"udp://123.123.123.128:1201":false}

     

    i have created a watcher to use this regex /(udp:\/\/\d+\.\d+\.\d+\.\d+:\d+)\":(\w+)/

    with two variables created

    $1

    $2

     

    the problem i have is that logmon matches on the first entry but i need it to break them up into different rows, any ideas on how to do this?



  • 2.  Re: logmon single line output needs treating as multi line
    Best Answer

    Broadcom Employee
    Posted Nov 14, 2017 12:16 PM

    HI I have not tried this but the format rule would be the only way this might work if this is all on a single line.

    you would start with something like "udp:// and end with ,".

    if not you might need to create a script to read in the information and save it to a file with each entry on a  single line and then use logmon to read that file.



  • 3.  Re: logmon single line output needs treating as multi line

    Posted Nov 16, 2017 08:38 AM

    Setting the formating rule wasnt working so a custom script is being created instead.