Hello Arix,
You use the "trim" command to trim specified number of columns from start of the line.
For example:
Without using trim command, the output would be this:
root@XXXXXX> show log messages
Jul 1 10:07:13 xxxxxx junos-alg: RT_ALG_WRN_CFG_NEED: MSRPC ALG detected packet from 10.10.31/49737
With using the trim command the output would be this:
root@XXXXXX> show log messages | match junos-alg | trim 85
10.10.31/49737
You need to count the number of columns you need to trim based on what logs you are viewing. Hope this helps.
Regards,
Prakash