日志切割,mv到历史目录

[oswatch@sjyh_front01 logs]$ stat application-normal.log
  File: ‘application-normal.log’
  Size: 208816180     Blocks: 472704     IO Block: 4096   regular file
Device: fd03h/64771d    Inode: 135668190   Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1003/ appbank)   Gid: ( 1003/ appbank)
Access: 2023-12-21 08:38:21.696552314 +0800
Modify: 2023-12-21 08:38:22.568553230 +0800
Change: 2023-12-21 08:38:22.568553230 +0800
Birth: -


[oswatch@sjyh_front01 logs]$ stat application-normal.log
  File: ‘application-normal.log’
  Size: 191027        Blocks: 384        IO Block: 4096   regular file
Device: fd03h/64771d    Inode: 135668191   Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1003/ appbank)   Gid: ( 1003/ appbank)
Access: 2023-12-21 08:38:23.033553750 +0800
Modify: 2023-12-21 08:38:23.151553992 +0800
Change: 2023-12-21 08:38:23.151553992 +0800
Birth: -

###日志切割,mv到历史目录
[oswatch@sjyh_front01 2023-12-21]$ stat application-normal-2023-12-21-77.log
  File: ‘application-normal-2023-12-21-77.log’
  Size: 209938896     Blocks: 472704     IO Block: 4096   regular file
Device: fd03h/64771d    Inode: 135668190   Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1003/ appbank)   Gid: ( 1003/ appbank)
Access: 2023-12-21 08:38:23.034553752 +0800
Modify: 2023-12-21 08:38:23.033553750 +0800
Change: 2023-12-21 08:38:23.033553750 +0800
Birth: -
 

你可能感兴趣的:(Flink实时计算,linux)