Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (430)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
"No time format was found on your conf file" Error
Why am I getting the "No time format was found on your conf file" error?
✍: FYIcenter.com
GoAccess does not have a default date and time formats for the log file.
If you run "goaccess" command with default options,
you will get this error:
fyicenter$ goaccess access_log -o report.html
[SETTING UP STORAGE access_log] {0} @ {0/s}
GoAccess - version 1.5.6 - Apr 3 2022 21:52:23
Config file: /etc/goaccess/goaccess.conf
Fatal error has occurred
Error occurred at: src/parser.c - parse_log - 2060
No time format was found on your conf file.
There are two ways to resolve this error:
1. Use the "--log-format" option to specify the log file format, which includs the time format:
fyicenter$ goaccess access_log -o report.html --log-format=COMBINED
2. Update the configuration file:
fyicenter$ sudo vi /etc/goaccess/goaccess.conf ... log-format COMBINED fyicenter$ goaccess access_log -o report.html
Do not use the "--time-format" and/or "--date-format" options, because the "--log-format" is still required:
fyicenter$ goaccess access_log -o report.html --time-format=%H:%M:%S No date format was found on your conf file. fyicenter$ goaccess access_log -o report.html --date-format=%d/%b/%Y --time-format=%H:%M:%S No log format was found on your conf file.
You can also use the "-c" option to set the format configuratin interactively:
fyicenter$ goaccess access_log -o report.html -c
+---------------------------------------------------------------------+
| Log Format Configuration |
| [SPACE] to toggle - [ENTER] to proceed - [q] to quit |
| |
| [x] NCSA Combined Log Format |
| [ ] NCSA Combined Log Format with Virtual Host |
| [ ] Common Log Format (CLF) |
| [ ] Common Log Format (CLF) with Virtual Host |
| [ ] W3C |
| [ ] CloudFront (Download Distribution) |
| |
| Log Format - [c] to add/edit format |
| %h %^[%d:%t %^] "%r" %s %b "%R" "%u" |
| |
| Date Format - [d] to add/edit format |
| %d/%b/%Y |
| |
| Time Format - [t] to add/edit format |
| %H:%M:%S |
+---------------------------------------------------------------------+
2023-01-06, ∼3096🔥, 0💬
Popular Posts:
How to save word documents into Unicode UTF-8 text files? When I convert Word documents into text fi...
Why I am getting the "run or save ChromeSetup.exe" pop up box when trying to install Google Chrome 3...
How to view the document.xml file with a Web browser? Since the document.xml file contains text cont...
How to download publication files from libgen.rs? libgen.rs or gen.lib.rus.ec is the most robust Web...
Where to find answers to frequently asked questions on Facebook? I want to know how to know how to u...