Support

Admin Tools

#22894 admintools_breaches.log length

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by emeryjay on Thursday, 02 July 2015 10:05 CDT

emeryjay
 1. It appears that admintools_breaches.log rolls over around 1 meg and renames the old log.

If I limit the log to 100 entries in the system plugin, will the rollover continue to function but with only 100 entries? That's what I am hoping.

2.How do I configure Admin Tools to put the breach log outside the root? Or does it require an Apache config change
Emery

nicholas
Akeeba Staff
Manager
It appears that admintools_breaches.log rolls over around 1 meg and renames the old log


This is exactly what it's supposed to do, yes.

If I limit the log to 100 entries in the system plugin, will the rollover continue to function but with only 100 entries? That's what I am hoping.


The plugin setting only affects the number of log entries in the database, not the log file. The log file always grows up to 1 MB and rolls over, therefore the maximum size it will occupy at any time is below 2 MB. The log file contains much more detailed information than the database records but it's a flat text file, therefore we can't count the number of log entries unless we do an extremely slow parsing of it (increasing the load time of each and every page by several seconds which would be catastrophic!). This is why the fixed length method was selected for this file.

2.How do I configure Admin Tools to put the breach log outside the root? Or does it require an Apache config change


Admin Tools uses the log directory specified in Joomla!'s Global Configuration page, in the "Log path". Change that and both Joomla! and all its extensions –including Admin Tools– will put their log files to the directory specified in that option.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

emeryjay
If you shell into a server via ssh to httpdocs/logs

This is a handy trick. Sorts by IP address and counts instances for admintools_breaches.log

sed -e 's/\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\).*$/\1/' -e t -e d admintools_breaches.log | sort | uniq -c

It's handy for access.log

Emery

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!