F-Secure Internet Gatekeeper for Linux/Administrator’s Guide
95
9.3
Time Display Conversion Tool
Most logs display the time in seconds elapsed from epoch time. With the
logconv
tool, the date fields
of year, month, date, hour, minute, and second can be added to the beginning of the date line in a log
file.
You can run the
logconv
tool with the following command. The options may be omitted.
#
/opt/f-secure/fsigk/misc/logconv
<Log file name>
(From Windows, you can run it from “
/opt/f-secure/fsigk/misc/logconv.exe
”.)
Options
--tail [num]
Outputs the log entries corresponding to the last [num] lines from the end of
the log.
--tailsec [sec]
The log entries recorded in the last [sec] seconds are output.
--cgi
Used when invoking with CGI.
--today
The logs recorded for the current day are output.
--noconv
Time conversion is not performed.
-r
Converts the converted data back to its original form.
The converted results appear in the standard output. If you add the --tail <num> option, log entries
from the end of the log file are displayed according to the specified number.
The logconv command can handle up to a 2 GB log file. For files larger than 2 GB, use the head or tail
command to split or extract the log data.
In the web console, the converted information will appear when the access or detection log is viewed.