It is necessary to bite certain parts of the lines out of the log. It would also be super, so that repetitions are not displayed. but not necessarily.
With this command, I output the lines I need from the log:
$ tail -f /var/adm/messages | grep 'KHARKOV.*errcode=-28' Nov 1 18:19:27 SSCK01 dhcpd[14507]: [ID 687704 local7.error] [tid:55] ERR DHCP(304) Authentication of user KHARKOV-K20 PON 1/1/01/03:11.1.1 failed (errcode=-28). Nov 1 18:19:27 SSCK01 dhcpd[14507]: [ID 687704 local7.error] [tid:7] ERR DHCP(304) Authentication of user KHARKOV-K13 PON 1/1/05/01:27.1.1 failed (errcode=-28). Nov 1 18:19:27 SSCK01 dhcpd[14507]: [ID 687704 local7.error] [tid:20] ERR DHCP(304) Authentication of user KHARKOV-K13 PON 1/1/02/02:45.1.1 failed (errcode=-28). It is necessary to display a piece:
KHARKOV-K20 PON 1/1/01/03:11.1.1 KHARKOV-K13 PON 1/1/05/01:27.1.1 KHARKOV-K13 PON 1/1/02/02:45.1.1 I found how using the cut command to bite a piece of the line before the 16m space
$tail -f /var/adm/messages | grep 'KHARKOV.*errcode=-28' | cut -d' ' -f16 KHARKOV-K20 KHARKOV-K13 KHARKOV-K13 As the rest I can not find.