added some logfilter scripts needed by tail_log_irc
This commit is contained in:
parent
f04947d6d4
commit
49045345e7
4 changed files with 48 additions and 0 deletions
7
utils/mp-server/logfilter_irc
Executable file
7
utils/mp-server/logfilter_irc
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sed -f
|
||||
s/\t/ /g
|
||||
# remove the timestamp and the IP
|
||||
s/^\(PREV: \|OLD: \|\)[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [a-zA-Z]\+ [a-zA-Z]\+: [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+ /\1/
|
||||
s/ info server://
|
||||
s/""/"/g
|
||||
/^<\(.*\)>$\|^<[a-zA-Z0-9_-]\+>\|^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(<server>\|Statistics:\) \|^[a-zA-Z0-9_-]\+ \(\(started\( reloaded\|\)\|advanced\|ended\) game: \|ended game: .* and disconnected.\)/!d
|
17
utils/mp-server/logfilter_irc_color
Executable file
17
utils/mp-server/logfilter_irc_color
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sed -f
|
||||
s/\t/ /g
|
||||
# remove the timestamp and the IP
|
||||
s/^\(PREV: \|OLD: \|\)[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [a-zA-Z]\+ [a-zA-Z]\+: [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+ /\1/
|
||||
s/ info server://
|
||||
s/""/"/g
|
||||
/^<\(.*\)>$\|^<[a-zA-Z0-9_-]\+>\|^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(<server>\|Statistics:\) \|^[a-zA-Z0-9_-]\+ \(\(started\( reloaded\|\)\|advanced\|ended\) game: \|ended game: .* and disconnected.\)/!d
|
||||
|
||||
s/^\([0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9]\) <server>/14\1 <05server14>05/
|
||||
s/^<\([a-zA-Z0-9_-]\+\) \(.*\)>$/14<12\1 \214>/
|
||||
s/^<\([a-zA-Z0-9_-]\+\)>/ 14<12\114>6/;s/ *\(.\{25\}14>\)/\1/
|
||||
s/^[a-zA-Z0-9_-]\+ started game: .*$/03&/
|
||||
s/^[a-zA-Z0-9_-]\+ started reloaded game: .*$/03&/
|
||||
s/^[a-zA-Z0-9_-]\+ advanced game: .*$/03&/
|
||||
s/^[a-zA-Z0-9_-]\+ ended game: .*$/05&/
|
||||
s/^[a-zA-Z0-9_-]\+ \(has logged o\|.* and disconnected.\).*$/14&/
|
||||
s/^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] Statistics:.*$/14&/
|
7
utils/mp-server/logfilter_irc_logged
Executable file
7
utils/mp-server/logfilter_irc_logged
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sed -f
|
||||
s/\t/ /g
|
||||
# remove the timestamp and the IP
|
||||
s/^\(PREV: \|OLD: \|\)[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [a-zA-Z]\+ [a-zA-Z]\+: [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+ /\1/
|
||||
s/ info server://
|
||||
s/""/"/g
|
||||
/^<\(.*\)>$\|^<[a-zA-Z0-9_-]\+>\|^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(<server>\|Statistics:\) \|^[a-zA-Z0-9_-]\+ \(\(started\( reloaded\|\)\|advanced\|ended\) game: \|.* and disconnected.\|has logged o\)/!d
|
17
utils/mp-server/logfilter_irc_logged_color
Executable file
17
utils/mp-server/logfilter_irc_logged_color
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sed -f
|
||||
s/\t/ /g
|
||||
# remove the timestamp and the IP
|
||||
s/^\(PREV: \|OLD: \|\)[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] [a-zA-Z]\+ [a-zA-Z]\+: [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+ /\1/
|
||||
s/ info server://
|
||||
s/""/"/g
|
||||
/^<\(.*\)>$\|^<[a-zA-Z0-9_-]\+>\|^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] \(<server>\|Statistics:\) \|^[a-zA-Z0-9_-]\+ \(\(started\( reloaded\|\)\|advanced\|ended\) game: \|.* and disconnected.\|has logged o\)/!d
|
||||
|
||||
s/^\([0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9]\) <server>/14\1 <05server14>05/
|
||||
s/^<\([a-zA-Z0-9_-]\+\) \(.*\)>$/14<12\1 \214>/
|
||||
s/^<\([a-zA-Z0-9_-]\+\)>/ 14<12\114>6/;s/ *\(.\{25\}14>\)/\1/
|
||||
s/^[a-zA-Z0-9_-]\+ started game: .*$/03&/
|
||||
s/^[a-zA-Z0-9_-]\+ started reloaded game: .*$/03&/
|
||||
s/^[a-zA-Z0-9_-]\+ advanced game: .*$/03&/
|
||||
s/^[a-zA-Z0-9_-]\+ ended game: .*$/05&/
|
||||
s/^[a-zA-Z0-9_-]\+ \(has logged o\|.* and disconnected.\).*$/14&/
|
||||
s/^[0-9]\+ [0-2][0-9]:[0-5][0-9]:[0-5][0-9] Statistics:.*$/14&/
|
Loading…
Add table
Reference in a new issue