Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I specify an alternate timestamp format for the DAEMON_LOG file?

0
Posted

Can I specify an alternate timestamp format for the DAEMON_LOG file?

0

As of DenyHosts v1.0.1, yes! By default, DenyHosts (when run in daemon mode) will timestamp log entries with an ISO8061 timestamp format. This may be undesirable for some users and may not blend easily with 3rd party packages such as log_check, log_watch, etc). To specify an alternate timestamp format, simply set the DAEMON_LOG_TIME_FORMAT parameter in the denyhosts.cfg file. It is recommended that you refer to the man page for strftime for possible values. A typical alternative timestamp may be Jan 1 22:05:59. To set the DAEMON_LOG_TIME_FORMAT to this format, insert the following line in your denyhosts.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.