egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with eggdrop logs and pisg
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
TommyGun
Voice


Joined: 26 May 2006
Posts: 36
Location: The Netherlands

PostPosted: Thu Jul 27, 2006 7:35 am    Post subject: Problem with eggdrop logs and pisg Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Thu Jul 27, 2006 9:23 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message MSN Messenger
TommyGun
Voice


Joined: 26 May 2006
Posts: 36
Location: The Netherlands

PostPosted: Thu Jul 27, 2006 11:58 am    Post subject: Reply with quote

Thanks.

I think its good this way;

Code:
##### 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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Vexor
Voice


Joined: 21 Jul 2006
Posts: 18
Location: Washington Court House

PostPosted: Thu Jul 27, 2006 12:54 pm    Post subject: Reply with quote

If you're running PISG you might want to change
Code:

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. Smile
_________________
"just the usual suggestion, RTFM" --demond
Back to top
View user's profile Send private message Visit poster's website
TommyGun
Voice


Joined: 26 May 2006
Posts: 36
Location: The Netherlands

PostPosted: Thu Jul 27, 2006 4:10 pm    Post subject: Reply with quote

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

But thanks for the tip Smile
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Jul 27, 2006 9:08 pm    Post subject: Reply with quote

I use the following for pisg:
Quote:
##### 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
Back to top
View user's profile Send private message Visit poster's website
TommyGun
Voice


Joined: 26 May 2006
Posts: 36
Location: The Netherlands

PostPosted: Fri Jul 28, 2006 11:58 am    Post subject: Reply with quote

I also changed it back to set logfile-suffix ".%d%b%Y". Works perfect now.
_________________
http://www.gamergun.com/ - Free Files Uploader
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
TommyGun
Voice


Joined: 26 May 2006
Posts: 36
Location: The Netherlands

PostPosted: Wed Aug 02, 2006 3:44 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
w1z4rd
Voice


Joined: 28 Jul 2006
Posts: 9

PostPosted: Thu Aug 03, 2006 7:44 pm    Post subject: Reply with quote

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 :/
Back to top
View user's profile Send private message AIM Address
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Aug 03, 2006 8:24 pm    Post subject: Reply with quote

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:
Quote:
logfile jpk #Ballarat "stats/ballarat.log"

Below is a section of my pisg.cfg
Code:
 <channel="#Ballarat">
   LogDir="/home/<username>/bots/stats/"
   ....
 </channel>
#

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
TommyGun
Voice


Joined: 26 May 2006
Posts: 36
Location: The Netherlands

PostPosted: Fri Aug 04, 2006 8:44 am    Post subject: Reply with quote

See my config files above. I see no different
_________________
http://www.gamergun.com/ - Free Files Uploader
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Fri Aug 04, 2006 8:01 pm    Post subject: Reply with quote

Quote:
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
Back to top
View user's profile Send private message Visit poster's website
TommyGun
Voice


Joined: 26 May 2006
Posts: 36
Location: The Netherlands

PostPosted: Mon Aug 07, 2006 2:38 am    Post subject: Reply with quote

I will try it at home, thanks
_________________
http://www.gamergun.com/ - Free Files Uploader
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
TommyGun
Voice


Joined: 26 May 2006
Posts: 36
Location: The Netherlands

PostPosted: Tue Aug 08, 2006 3:20 pm    Post subject: Reply with quote

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

Eggdrop config;

Code:
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:

<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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Aug 08, 2006 5:47 pm    Post subject: Reply with quote

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 Razz)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber