Page 1 of 1

Installing logrotate on Gargoyle?

Posted: Mon Feb 26, 2018 1:29 pm
by agrohe21
I enabled query logging in dnsmasq and re-routed the log to /var/log/dnsmasq.log.

However, I would like to roll this file over daily using logrotate.

When I attempt to install via opkg install logrotate, I get an error.

root@Gargoyle:/tmp/log# opkg install logrotate
ERROR: No package named logrotate found, try updating your package lists

Re: Installing logrotate on Gargoyle?

Posted: Mon Feb 26, 2018 1:53 pm
by ispyisail

Re: Installing logrotate on Gargoyle?

Posted: Mon Feb 26, 2018 2:29 pm
by agrohe21
I performed the update as noted, but still dont have that in list

root@Gargoyle:~# opkg list|grep logr
plugin-gargoyle-logread - 20120724-4 - logread for Gargoyle

Is there another repo? This is what I have in /etc/opkg.conf
src/gz chaos_calmer_base http://archive.openwrt.org/chaos_calmer ... kages/base
src/gz chaos_calmer_management http://archive.openwrt.org/chaos_calmer ... management
src/gz chaos_calmer_packages http://archive.openwrt.org/chaos_calmer ... s/packages
src/gz chaos_calmer_routing http://archive.openwrt.org/chaos_calmer ... es/routing
src/gz chaos_calmer_telephony http://archive.openwrt.org/chaos_calmer ... /telephony

Re: Installing logrotate on Gargoyle?

Posted: Mon Feb 26, 2018 3:44 pm
by Lantis
That package never existed in the Chaos Calmer package repo.
It will probably be available in the next Gargoyle release based on the remerge of LEDE/Openwrt

Re: Installing logrotate on Gargoyle?

Posted: Mon Feb 26, 2018 6:26 pm
by agrohe21
so that is a wait until next release? I do think the dnsmasq.log gets cleared after reboot, so I can do that in meantime.

please clarify.

thanks for all the help!

Re: Installing logrotate on Gargoyle?

Posted: Mon Feb 26, 2018 7:11 pm
by Lantis
Maybe not actually. I don’t see it in the latest repo either.
You can compile it yourself from here though:
https://github.com/openwrt/packages/tre ... /logrotate

You’d need to get Gargoyle compiling first, then drop this package in and configure the config for building it.

Re: Installing logrotate on Gargoyle?

Posted: Tue Feb 27, 2018 7:55 pm
by agrohe21
I am afraid that goes beyond my comfort zone. For now I have put in a 32GB USB drive and redirected the dnsmasq logfile to the drive. Will be awhile before filling up.

Should I fill out a request/jira to have logrotate as a standard gargoyle or openwrt package?

Re: Installing logrotate on Gargoyle?

Posted: Tue Feb 27, 2018 8:43 pm
by Lantis
You can make a post in feature requests. It doesn’t get monitored heavily.
Sorry.

It is already in the Openwrt package repo it just doesn’t seem to be being picked up. You could try checking with them.

Alternatively, compiling firmwares isn’t that hard :) I’m sure you could get it working. We are happy to help you get up and running.

Re: Installing logrotate on Gargoyle?

Posted: Thu Feb 20, 2020 10:11 pm
by agrohe21
Hey, this now works in 1.12.

Code: Select all

opkg update
opkg install logrotate
good stuff. thanks!