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.

Problem with eggdrop logs and pisg

General support and discussion of Eggdrop bots.
User avatar
TommyGun
Voice
Posts: 36
Joined: Fri May 26, 2006 6:11 pm
Location: The Netherlands
Contact:

Problem with eggdrop logs and pisg

Post by TommyGun »

Hey

Im running eggdrop and pisg, but i have a problem.

Eggdrop makes a channel.log file and a channel.yesterday.log (or something) file.

Now for pisg, i need to edit something that it makes a log file for every day, and i also want that he never deletes the log files.

How do i have to do this? I can post my config when im at home. (At work now).

Thanks in advance
Last edited by TommyGun on Wed Aug 02, 2006 4:02 pm, edited 1 time in total.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

you are loooking for "keep-all-logs".
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
TommyGun
Voice
Posts: 36
Joined: Fri May 26, 2006 6:11 pm
Location: The Netherlands
Contact:

Post by TommyGun »

Thanks.

I think its good this way;

Code: Select all

##### LOG FILES #####

# Eggdrop is capable of logging various things, from channel chatter to
# commands people use on the bot and file transfers. Logfiles are normally
# kept for 24 hours. Afterwards, they will be renamed to "(logfile).yesterday".
# After 48 hours, they will be overwritten by the logfile of the next day.
#
# Events are logged by certain categories. This way, you can specify
# exactly what kind of events you want sent to various logfiles.
#
# Logfile flags:
#   b - information about bot linking and userfile sharing
#   c - commands
#   d - misc debug information
#   h - raw share traffic
#   j - joins, parts, quits, and netsplits on the channel
#   k - kicks, bans, and mode changes on the channel
#   m - private msgs, notices and ctcps to the bot
#   o - misc info, errors, etc (IMPORTANT STUFF)
#   p - public text on the channel
#   r - raw incoming server traffic
#   s - server connects, disconnects, and notices
#   t - raw botnet traffic
#   v - raw outgoing server traffic
#   w - wallops (make sure the bot sets +w in init-server)
#   x - file transfers and file-area commands
#
# Note that modes d, h, r, t, and v can fill disk quotas quickly. There are
# also eight user-defined levels (1-8) which can be used by Tcl scripts.
#
# Each logfile belongs to a certain channel. Events of type 'k', 'j', and 'p'
# are logged to whatever channel they happened on. Most other events are
# currently logged to every channel. You can make a logfile belong to all
# channels by assigning it to channel "*".

# This is the maximum number of logfiles allowed. This setting can be
# increased; however, don't decrease it.
set max-logs 5000

# This is the maximum size of your logfiles. Set it to 0 to disable.
# This value is in kilobytes, so '550' would mean cycle logs when it
# reaches the size of 550 kilobytes. Note that this only works if you
# have keep-all-logs 0 (OFF).
set max-logsize 0

# This could be good if you have had problem with the logfile filling
# your quota/hard disk or if you log +p and publish it to the web and
# need more up-to-date info. Note that this setting might increase the
# CPU usage of your bot (on the other hand it will decrease your mem usage).
set quick-logs 0

# This setting allows you the logging of raw incoming server traffic via
# console/log flag 'r', raw outgoing server traffic via console/log mode 'v',
# raw botnet traffic via console/log mode 't', and raw share traffic via
# console/log mode 'h'. These flags can create a large security hole,
# allowing people to see user passwords. This is now restricted to +n users
# only. Please choose your owners with care.
set raw-log 0

# This creates a logfile named eggdrop.log containing private msgs/ctcps,
# commands, errors, and misc. info from any channel.
logfile mco * "logs/eggdrop.log"

# This creates a logfile named lamest.log containing joins, parts,
# netsplits, kicks, bans, mode changes, and public chat on the
# channel #lamest.
logfile jpk #divisionbrabant "logs/divisionbrabant.log"

# Use this feature to timestamp entries in the log file.
set log-time 1

# If you want to keep your logfiles forever, turn this setting on. All
# logfiles will get suffix ".[day, 2 digits][month, 3 letters][year, 4 digits]".
# Note that your quota/hard-disk might be filled by this, so check your
# logfiles often and download them.
set keep-all-logs 1

# If keep-all-logs is 1, this setting will define the suffix of the logfiles.
# The default will result in a suffix like "04May2000". "%Y%m%d" will produce
# the often used yyyymmdd format. Read the strftime manpages for more options.
# NOTE: On systems which don't support strftime, the default format will
# be used _always_.
set logfile-suffix ".%Y%m%d"

# You can specify when Eggdrop should switch logfiles and start fresh. You
# must use military time for this setting. 300 is the default, and describes
# 03:00 (AM).
set switch-logfiles-at 300

# "Writing user file..." and "Writing channel file..." messages won't be
# logged anymore if this option is enabled.
set quiet-save 0
User avatar
Vexor
Voice
Posts: 18
Joined: Fri Jul 21, 2006 4:22 am
Location: Washington Court House
Contact:

Post by Vexor »

If you're running PISG you might want to change

Code: Select all

logfile mco * "logs/eggdrop.log"
to "egglog/eggdrop.log"

Just to keep your channel logs seperate from your eggdrop log. I can't remember if PISG would/will process that file or not. I keep my logs seperate out of habit anyway. Good luck generating stats. :)
"just the usual suggestion, RTFM" --demond
User avatar
TommyGun
Voice
Posts: 36
Joined: Fri May 26, 2006 6:11 pm
Location: The Netherlands
Contact:

Post by TommyGun »

Thats not a problem, because pisg only reads logs with "channelname" in it. (I did setup that)

But thanks for the tip :)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

I use the following for pisg:
##### LOG FILES #####

set max-logs 365

set max-logsize 0

set quick-logs 0

set raw-log 0

logfile mco * "logs/enfield.log"

logfile jpk #Ballarat "stats/ballarat.log"

# Use this feature to timestamp entries in the log file.
set log-time 1

# If you want to keep your logfiles forever, turn this setting on. All
set keep-all-logs 1

set logfile-suffix ".%d%b%Y"

# You can specify when Eggdrop should switch logfiles and start fresh. You
# must use military time for this setting. 300 is the default, and describes
# 03:00 (AM).
set switch-logfiles-at 300

# "Writing user file..." and "Writing channel file..." messages won't be
# logged anymore if this option is enabled.
set quiet-save 1
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
TommyGun
Voice
Posts: 36
Joined: Fri May 26, 2006 6:11 pm
Location: The Netherlands
Contact:

Post by TommyGun »

I also changed it back to set logfile-suffix ".%d%b%Y". Works perfect now.
http://www.gamergun.com/ - Free Files Uploader
User avatar
TommyGun
Voice
Posts: 36
Joined: Fri May 26, 2006 6:11 pm
Location: The Netherlands
Contact:

Post by TommyGun »

Weird problem now.

Behind user x; Yesterday. While he is online now.
Behind user z; 6 days ago. While he also is online now.
And some other users does work correct.

Already killed / restarted / rehashed Eggdrop and restarted PISG.

What can this be? My logs are looking like this;

divisionbrabant.log.02Aug2006
divisionbrabant.log.01Aug2006
divisionbrabant.log.31Jul2006
divisionbrabant.log.30Jul2006
divisionbrabant.log.29Jul2006
divisionbrabant.log.28Jul2006

divisionbrabant.log.20060727
divisionbrabant.log.20060728
divisionbrabant.log.20060802

Dont know why the name is different from the 3 below.

Configs;

http://www.gamergun.com/files/1/TommyBOT.conf
http://www.gamergun.com/files/1/pisg.cfg

Thanks in advance
http://www.gamergun.com/ - Free Files Uploader
w
w1z4rd
Voice
Posts: 9
Joined: Fri Jul 28, 2006 6:53 am

Post by w1z4rd »

Im about to start crying as well. I can stop this silly bot from rotating the logs :/ and i also need them for pisg :/

ive tried all the configs here :/
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Use my settings (above) and .restart your bot. My bot keeps the logs and rotates them every year.

PS: You will notice that I actually have a separate folder for the logs that pisg uses:
logfile jpk #Ballarat "stats/ballarat.log"
Below is a section of my pisg.cfg

Code: Select all

 <channel="#Ballarat">
   LogDir="/home/<username>/bots/stats/"
   ....
 </channel>
#
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
TommyGun
Voice
Posts: 36
Joined: Fri May 26, 2006 6:11 pm
Location: The Netherlands
Contact:

Post by TommyGun »

See my config files above. I see no different
http://www.gamergun.com/ - Free Files Uploader
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

divisionbrabant.log.01Aug2006
Normal filename behaviour for storing logs as per 'set logfile-suffix'.

Keeping the channel logs separate from the nomal bot logs may also help.

Bug reports for pisg can be made here.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
TommyGun
Voice
Posts: 36
Joined: Fri May 26, 2006 6:11 pm
Location: The Netherlands
Contact:

Post by TommyGun »

I will try it at home, thanks
http://www.gamergun.com/ - Free Files Uploader
User avatar
TommyGun
Voice
Posts: 36
Joined: Fri May 26, 2006 6:11 pm
Location: The Netherlands
Contact:

Post by TommyGun »

Changed some things but no different :( My logs config is almost the same as yours.

Eggdrop config;

Code: Select all

set max-logs 1000
set max-logsize 0
set quick-logs 0
set raw-log 0
logfile mco * "egglog/eggdrop.log"
logfile jpk #divisionbrabant "logs/divisionbrabant.log"
set log-time 1
set keep-all-logs 1
set logfile-suffix ".%d%b%Y"
set switch-logfiles-at 300
set quiet-save 1
Pisg config;

Code: Select all

<channel="#divisionbrabant">
   LogDir="/home/tommygun/eggdrop/logs/"
   Format="eggdrop"
   Timeoffset="+0"
   Lang="NL"
   ShowFoulLine="1"
   DailyActivity="30"
   ShowActiveTimes="1"
   ShowActiveNicks="1"
   ShowBigNumbers="1"
   ShowTopics="1"
   ShowLines="1"
   ShowWpl="1"
   ShowCpl="1"
   ShowWords="1"
   ShowLastSeen="1"
   ShowTime="1"
   ShowLineTime="1"
   ShowWordTime="1"
   ShowRandQuote="1"
   ShowLegend="1"
   ShowKickLine="1"
   ShowActionLine="1"
   ShowShoutLine="1"
   ShowMuw="1"
   ShowMrn="1"
   ShowMru="1"
   ShowCharts="0"
   ShowMostNicks="1"
   ShowActiveGenders="1"
   ShowSmileys="1"
   ShowMostActiveByHour="1"
   ShowMostActiveByHourGraph="1"
   ActiveNicks="50"
   ActiveNicks2="25"
   ActiveNicksByHour="25"
   MostNicksHistory="10"
   MostNicksVerbose="1"
   TopicHistory="5"
   UrlHistory="15"
   ChartsHistory="10"
   WordHistory="15"
   NickHistory="15"
   SmileyHistory="15"
   NickTracking="1"
   PicLocation="http://www.link.com/chatstats/gfx/"
   UserPics="1"
   ImagePath="http://www.link.com/chatstats/userpics/"
   DefaultPic="http://www.link.com/chatstats//userpics/not_available.jpg"
   Maintainer="TommyGun"
   Network="GamerGun"
   OutputFile="/var/www/html/chatstats/index.php"
   ColorScheme="default"
   PicWidth="60"
   PicHeight="60"
   MaxQuote="40"
   ShowHalfops = "1"
   ShowOps = "1"
 </channel>
Thanks for your help
http://www.gamergun.com/ - Free Files Uploader
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

If you had bothered to look at pisg's docs, website or mail archives, since this is a pisg problem not an eggdrop problem, you would have found that the log suffix has to be "%Y%m%d. That puts the logs in the right numerical order to do the last seen stats correctly.

pisg FORMATS:

* Eggdrop:
- A cool and advanced IRC bot for Linux (www.eggheads.org)

- In order to use this, format must be set to 'eggdrop'.

You might want to change the logfile-suffix in order for pisg to parse the
files in the correct order when using 'logdir':
set logfile-suffix ".%Y%m%d" instead of the standard format
set logfile-suffix ".%d%b%Y".


The above is true whether you use 'LogDir' or not (as I found out when I installed pisg yesterday :P)
Post Reply