create item
logrt[/tmp/test/^logrt_test.log.*,,,,,,,copytruncate]
procedure
]# echo "test1 ----------------------------------------------" >> /tmp/test/logrt_test.log ]# echo "test1 `date "+%Y%m%d-%H%M%S"` ERROR:ccccccccccccccc" >> /tmp/test/logrt_test.log ]# echo "test1 `date "+%Y%m%d-%H%M%S"` ERROR:ccccccccccccccc" >> /tmp/test/logrt_test.log ]# echo "test1 `date "+%Y%m%d-%H%M%S"` ERROR:ccccccccccccccc" >> /tmp/test/logrt_test.log ]# cp -p /tmp/test/logrt_test.log /tmp/test/logrt_test.log.1 ]# cp /dev/null /tmp/test/logrt_test.log ]# echo "test2 ----------------------------------------------" >> /tmp/test/logrt_test.log ]# echo "test2 `date "+%Y%m%d-%H%M%S"` NORMAL" >> /tmp/test/logrt_test.log ]# echo "test3 ----------------------------------------------" >> /tmp/test/logrt_test.log ]# echo "test3 `date "+%Y%m%d-%H%M%S"` ERROR:ddddddddddddd" >> /tmp/test/logrt_test.log
History of the latest data is as follows.
2021/01/07 17:45:40 test3 20210107-174527 ERROR:ddddddddddddd 2021/01/07 17:45:40 test3 ---------------------------------------------- 2021/01/07 17:42:40 test1 20210107-174140 ERROR:ccccccccccccccc 2021/01/07 17:41:40 test1 20210107-174132 ERROR:ccccccccccccccc 2021/01/07 17:41:40 test1 20210107-174124 ERROR:ccccccccccccccc 2021/01/07 17:41:40 test1 ----------------------------------------------
The test2 message was not read.