Products | Versions |
---|---|
TIBCO LogLogic Enterprise Virtual Appliance | 6.1.0 and higher |
As Administrators may know - the parsed data is stored in data-folder for each Real Time Database under '/loglogic/data':
ll_auth_logs ll_cached_results ll_files ll_files_in ll_firewall_logs ll_ids_logs ll_misc_logs ll_postupgrade ll_stats ll_temp_results ll_vpn_logs ll_www_logs
$ cd /loglogic/data/ll_auth_logs $ ls -l *_0* -rw-r----- 1 mysql users 0 Jul 15 16:21 mrgAuthentication1day_0.MYD -rw-r----- 1 mysql users 1024 Jul 15 16:21 mrgAuthentication1day_0.MYI -rw-r----- 1 mysql users 13546 Jul 15 16:21 mrgAuthentication1day_0.frm -rw-r----- 1 mysql users 0 Jul 15 16:22 mrgAuthentication1hrConn_0.MYD -rw-r----- 1 mysql users 1024 Jul 15 16:22 mrgAuthentication1hrConn_0.MYI -rw-r----- 1 mysql users 13398 Jul 15 16:22 mrgAuthentication1hrConn_0.frm -rw-r----- 1 mysql users 0 Jul 15 16:21 mrgAuthentication1hr_0.MYD -rw-r----- 1 mysql users 1024 Jul 15 16:21 mrgAuthentication1hr_0.MYI -rw-r----- 1 mysql users 13546 Jul 15 16:21 mrgAuthentication1hr_0.frm
$ cd /loglogic/data/ll_auth_logs $ ls -l *_1*.MYD
... -rw-r----- 1 mysql users 16420 Jul 26 18:02 mrgAuthentication1day_1627257600.MYD -rw-r----- 1 mysql users 16724 Jul 27 18:02 mrgAuthentication1day_1627344000.MYD -rw-r----- 1 mysql users 6012 Jul 28 06:02 mrgAuthentication1day_1627430400.MYD -rw-r----- 1 mysql users 2544 Jul 16 00:02 mrgAuthentication1hrConn_1626307200.MYD -rw-r----- 1 mysql users 10688 Jul 17 00:02 mrgAuthentication1hrConn_1626393600.MYD -rw-r----- 1 mysql users 9792 Jul 18 00:03 mrgAuthentication1hrConn_1626480000.MYD -rw-r----- 1 mysql users 9792 Jul 19 00:02 mrgAuthentication1hrConn_1626566400.MYD ...
$ find ./*_1*.MYD -type f -mtime 10
$ cd /loglogic/data/ll_auth_logs
$ find ./*_1*.MYD -type f -atime +10 ./mrgAuthentication1day_1626307200.MYD ./mrgAuthentication1day_1626393600.MYD ./mrgAuthentication1day_1626480000.MYD ./mrgAuthentication1hrConn_1626307200.MYD ./mrgAuthentication1hrConn_1626393600.MYD ./mrgAuthentication1hrConn_1626480000.MYD ./mrgAuthentication1hr_1626307200.MYD ./mrgAuthentication1hr_1626393600.MYD ./mrgAuthentication1hr_1626480000.MYD ./mrgAuthentication_1626307200.MYD ./mrgAuthentication_1626393600.MYD ./mrgAuthentication_1626480000.MYD
$ date -ud@1626307200 # for first file - current date: 28/07/2021 Thu Jul 15 00:00:00 UTC 2021 $ date -ud@1626480000 # for last file - current date: 28/07/2021 Sat Jul 17 00:00:00 UTC 2021
$ cd /loglogic/data/ll_auth_logs
$ find ./*_1*.MYD -type f -atime +10 | awk -F "./" '{print $2}' | awk -F "." '{print $1}' mrgAuthentication1day_1626307200 mrgAuthentication1day_1626393600 mrgAuthentication1day_1626480000 mrgAuthentication1hrConn_1626307 mrgAuthentication1hrConn_1626393 mrgAuthentication1hrConn_1626480 mrgAuthentication1hr_1626307200 mrgAuthentication1hr_1626393600 mrgAuthentication1hr_1626480000 mrgAuthentication_1626307200 mrgAuthentication_1626393600 mrgAuthentication_1626480000
$ cd /loglogic/data/ll_auth_logs $ for TABLE in `find ./*_1*.MYD -type f -atime +10 | awk -F "./" '{print $2}' | awk -F "." '{print $1}'`; do mysql ll_auth_logs -e "drop table $TABLE"; done