audit log tail
Display the last several entries of the named log file, with options to narrow the selection of the displayed entries.
User Privileges
Only specialized Audit users can access audit commands.
Syntax
audit log tail -file <filename> [-serial <serialnum>] [-entries <logentries>] [-search <string>]
Argument(s) | Shortcut | Description |
---|---|---|
-entries <logentries> | -e |
Specifies the number of log entries to display. |
-file <filename> | -f | Specifies the name of the log file to view. |
-search <string> | -sea |
Specifies a search string, such that only log entries containing that string are returned, from the named file, and from the specified range of "-entries" within that file (if the "-entries" option is provided - otherwise, the entire file is searched). |
-serial <serialnum> | -ser |
Specifies the serial number of the HSM from which you want to clear the logs. This option s required only when there are multiple attached HSMs. |
Example
Last 10 entries
lunash:>audit log tail -file hsm_66331_00000009.log -entries 10 301176,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_CLOSE_SESSION returned RC_OK(0x00000000) session handle 2 301177,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_OPEN_SESSION returned RC_OK(0x00000000) session handle 2 301178,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_CLOSE_SESSION returned RC_OK(0x00000000) session handle 2 301179,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_OPEN_SESSION returned RC_OK(0x00000000) session handle 2 301180,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_CLOSE_SESSION returned RC_OK(0x00000000) session handle 2 301181,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_OPEN_SESSION returned RC_OK(0x00000000) session handle 2 301182,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_CLOSE_SESSION returned RC_OK(0x00000000) session handle 2 301183,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_OPEN_SESSION returned RC_OK(0x00000000) session handle 2 301184,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_CLOSE_SESSION returned RC_OK(0x00000000) session handle 2 0, ,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 Command Result : 0 (Success)
Entries within the last 10 containing "OPEN_SESSION"
lunash:>audit log tail -file hsm_66331_00000009.log -entries 10 -search OPEN_SESSION 301177,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_OPEN_SESSION returned RC_OK(0x00000000) session handle 2 301179,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_OPEN_SESSION returned RC_OK(0x00000000) session handle 2 301181,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_OPEN_SESSION returned RC_OK(0x00000000) session handle 2 301183,17/02/28 02:59:56,S/N 154438865286 session 2 Access 2147483651:3 operation LUNA_OPEN_SESSION returned RC_OK(0x00000000) session handle 2 Command Result : 0 (Success)