Installing logrotate on Gargoyle?

Report issues relating to bandwith monitoring, bandwidth quotas or QoS in this forum.

Moderator: Moderators

Post Reply
agrohe21
Posts: 95
Joined: Wed Aug 23, 2017 7:51 pm

Installing logrotate on Gargoyle?

Post 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
Linksys WRT32x Wired Gateway, Orbi RBK20 Wifi
Linksys WRT32x Wired Gateway, Orbi RBK50 Wifi

ispyisail
Moderator
Posts: 5180
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Installing logrotate on Gargoyle?

Post by ispyisail »


agrohe21
Posts: 95
Joined: Wed Aug 23, 2017 7:51 pm

Re: Installing logrotate on Gargoyle?

Post 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
Linksys WRT32x Wired Gateway, Orbi RBK20 Wifi
Linksys WRT32x Wired Gateway, Orbi RBK50 Wifi

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Installing logrotate on Gargoyle?

Post 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
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

agrohe21
Posts: 95
Joined: Wed Aug 23, 2017 7:51 pm

Re: Installing logrotate on Gargoyle?

Post 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!
Linksys WRT32x Wired Gateway, Orbi RBK20 Wifi
Linksys WRT32x Wired Gateway, Orbi RBK50 Wifi

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Installing logrotate on Gargoyle?

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

agrohe21
Posts: 95
Joined: Wed Aug 23, 2017 7:51 pm

Re: Installing logrotate on Gargoyle?

Post 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?
Linksys WRT32x Wired Gateway, Orbi RBK20 Wifi
Linksys WRT32x Wired Gateway, Orbi RBK50 Wifi

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Installing logrotate on Gargoyle?

Post 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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

agrohe21
Posts: 95
Joined: Wed Aug 23, 2017 7:51 pm

Re: Installing logrotate on Gargoyle?

Post by agrohe21 »

Hey, this now works in 1.12.

Code: Select all

opkg update
opkg install logrotate
good stuff. thanks!
Linksys WRT32x Wired Gateway, Orbi RBK20 Wifi
Linksys WRT32x Wired Gateway, Orbi RBK50 Wifi

Post Reply