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 

[Solved]Logfile flags being ignored

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
starpossen
Op


Joined: 10 Jan 2006
Posts: 139

PostPosted: Wed Feb 06, 2008 3:48 am    Post subject: [Solved]Logfile flags being ignored Reply with quote

I didn't want my bot to log all those joins, parts, quits etc.
so I thought that removing the j would solve this as the
conf says:

Code:

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

# Eggdrop is capable of logging various things, from channel chatter to
# commands people use on the bot and file transfers.
# Events are logged by certain categories. This way, you can specify
# exactly what kind of events you want sent to various logfiles.
#
# Logfile flags:
#   j - joins, parts, quits, and netsplits on the channel


therefor I change mine from:

logfile jpk #lamest "logs/lamest.log"
to:
logfile pk #lamest "logs/lamest.log"

But it still logs the quits and such.

Did I miss something?


Last edited by starpossen on Fri Feb 08, 2008 11:43 pm; edited 2 times in total
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Wed Feb 06, 2008 4:19 am    Post subject: Reply with quote

Check the log settings displayed from the output of dcc command .status all and re-check the flags that way.
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
starpossen
Op


Joined: 10 Jan 2006
Posts: 139

PostPosted: Wed Feb 06, 2008 2:11 pm    Post subject: Reply with quote

Code:

[19:07:25] <bot> Logfile #1: logs/eggdrop.log on * (mco: msgs, cmds, misc)
[19:07:25] <bot> Logfile #2: logs/mychannel.log on #mychannel (pk: public, kicks/modes)


Is what it shows in partyline for that section in questio.
I don't get it, It simply ignores to not log the j part.
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Thu Feb 07, 2008 2:03 am    Post subject: Reply with quote

Do you want it to log joins, parts, quits and netsplits? or not? Confused
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
starpossen
Op


Joined: 10 Jan 2006
Posts: 139

PostPosted: Thu Feb 07, 2008 3:06 am    Post subject: Reply with quote

Sorry for being unclear, what I want NOT to be logged is:
Code:

Joins
Parts
Quits
Netsplits

I only want it to log normal chat and kicks, normal stuff.
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Fri Feb 08, 2008 3:17 am    Post subject: Reply with quote

no worries Smile sorry for mix up.
Quote:
logfile pk #lamest "logs/lamest.log"
would do it. I think you just need to cycle the current log file and then
Quote:
.restart
the bot Very Happy
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri Feb 08, 2008 11:08 am    Post subject: Reply with quote

TCL_no_TK wrote:
no worries Smile sorry for mix up.
Quote:
logfile pk #lamest "logs/lamest.log"
would do it. I think you just need to cycle the current log file and then
Quote:
.restart
the bot Very Happy
What part of starpossen's post showing that was already done did you miss??

What version eggdrop is this issue happening on?
Back to top
View user's profile Send private message
starpossen
Op


Joined: 10 Jan 2006
Posts: 139

PostPosted: Fri Feb 08, 2008 12:51 pm    Post subject: Reply with quote

I did restart several times, and im using Windrop v1.6.18 and yes im well aware of this is not a windrop forum, however, I think I need to mention this:
http://forum.egghelp.org/viewtopic.php?t=15352

I did a conversion of a mIRC log to eggdrop log, and the mIRC had quits, and parts etc.
After the convertion where everything ran fine, thus still showing quits etc. AND using just p in logfil parameters, it still showed everything, so I guess my convertion messed up since it still keps all the reason quits etc.

Yesterday I tried with a fresh new eggdrop log, using only p
and that works as it should, only logging normal chat, but it's sad if I can't use the "big" log.

Is there a way to "clean" a log from quits, parts and all that?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Feb 08, 2008 2:16 pm    Post subject: Reply with quote

That would explain alittle, yes..
Changing logging-settings will not affect what has been logged sofar, only what will be logged in the future.

As for "cleaning" your logfiles, I'd recommend writing a simple script using pattern-matching (such as regular expressions).
If you got some tool such as grep, you could try something like this, I suppose:
Code:
[user@host logs]# egrep -v '\[([0-9:]{5})\] [^ ]+ \([^ ]+\) (joined|left|got|returned) .*' logfile

The regular expression could probably be used with regexp in tcl-coding without too many issues.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri Feb 08, 2008 2:21 pm    Post subject: not an eggdrop (or windrop) problem, strictly operator probl Reply with quote

Log settings only apply to what the bot logs, not to what you put in there.
This issue is an operator problem.
You will have to "clean" the log yourself. Since you are doing this on a Windows machine, I do not know an "easy" way to remove the unwanted entries on Win32 as it can be done with sed on a UNIX-like operating system.
Back to top
View user's profile Send private message
starpossen
Op


Joined: 10 Jan 2006
Posts: 139

PostPosted: Fri Feb 08, 2008 3:36 pm    Post subject: Reply with quote

Speaking of sed, I got sed working on windows, using links in the topic I linked to in an earlier post in this topic, so if you could show or tell me what commands/parameters used in unix, maybe I could try and use it, and I would like thank you all for replying to my questions eventhough this is regarding my windrop and not my other eggs who are running under linux.

But as I asked, I would be thrilled if you could point me in the right direction regarding the sed and how to remove unwanted entries in unix.

*EDIT* I used google and found help here: http://www.grymoire.com/Unix/Sed.html
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Fri Feb 08, 2008 9:30 pm    Post subject: Reply with quote

cat logfile.log | sed -e '/QUIT/d' -e '/JOIN/d' -e '/PART/d' > newlog.log && mv newlog.log logfile.log
Back to top
View user's profile Send private message
starpossen
Op


Joined: 10 Jan 2006
Posts: 139

PostPosted: Fri Feb 08, 2008 11:43 pm    Post subject: Reply with quote

Thanks alot for your reply, all is as I wanted it to be now.
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
Page 1 of 1

 
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