This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

using eggdrop today and yesterday logs..

Old posts that have not been replied to for several years.
Locked
X
Xastor

using eggdrop today and yesterday logs..

Post by Xastor »

I'll explain how my problem originated.

I was messing around with pisg, which is the best open-source statgen there is, and I decided to use an eggdrop to collect the logs. I installed it, and began gathering logs, which pisg processed, and put on the webpage. Now I noticed that eggdrop made a .log and .yesterday file, and I also put a link to those 2 files on my website.

At that time, I was looking into the configfile (once again) and noticed that using this configuration, the logs wouldn't be around forever.. you needed to enable a special option for that. But when I did so, there was to .log and .yesterday file anymore :(

Is there a way to keep logs forever, and still have a .log and .yesterday logfile?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

No.

Eggdrop can keep upto 48 hours of logs (depending on the time of day - making it between 24 and 48 hours), or it can log forever, using date-stamped log files.

Note: this is only by default.

Eggdrop has a scripting system, where a script can be run before logfile rotation. This can be used to copy the log files in question to the correct names (.log and .log.yesterday), plus, go on to datestamp and keep log files forever.
X
Xastor

thanks!

Post by Xastor »

I'll give the scripting approach a shot..
X
Xastor

tcl scripting..

Post by Xastor »

I figured most of the scripting out.. they only prob is that I don't have a clue, on how to get a hold of the complete logfile path, for a given channel.. i've been messing around with the logfile command, but couldn't figure it out..

anyone an idea how I can get this path?
g
guppy
eggdrop engineer
Posts: 199
Joined: Mon Sep 24, 2001 8:00 pm
Location: Canada
Contact:

Post by guppy »

If your using a program to generate stats from your logs ... the best idea is to have one big logfile. You can accomplish this by setting 'switch-logfiles-at' to a high value like 65545 and you'll get one logfile.

Jeff
X
Xastor

Post by Xastor »

guppy wrote:If your using a program to generate stats from your logs ... the best idea is to have one big logfile. You can accomplish this by setting 'switch-logfiles-at' to a high value like 65545 and you'll get one logfile.
Yes indeed, but that's not realy necessary.. pisg offers an option to process a complete directory, so that's no problem.

Plus, I'd like to place the logs of today and yesterday online, which would be quite impossible then.
A script that on log rotation updates a symbolic link to the right file would be a good solution, I think.. But it's kinda hard to get a hold of the path to current logfile, that's the missing link atm..

xas
X
Xastor

solved

Post by Xastor »

Just to let you know how I solved it, i wrote a php script that takes the 2 most recent files and prints links to those 2. those are then today and yesterday.

thanks for any feedback I received..

xas
Locked