Skip to content

Instantly share code, notes, and snippets.

@ssig33
Last active December 13, 2015 22:19
Show Gist options
  • Select an option

  • Save ssig33/4983937 to your computer and use it in GitHub Desktop.

Select an option

Save ssig33/4983937 to your computer and use it in GitHub Desktop.
<source>
type tail
path /path/to/log.txt
tag tiarra.all
format /^(?<time>[^ ]+\ [^ ]+)\ <(?<channel>[^ ]*):(?<nick>[^ ]*)>\ (?<log>.*)$/
time_format %Y/%m/%d %H:%M:%S
pos_file /tmp/pos
</source>
+ Log::Channel {
directory: log
charset: utf8
header: %Y/%m/%d %H:%M:%S
filename: log.txt
mode: 600
dir-mode: 700
command: privmsg,topic,notice
distinguish-myself: 1
sync: sync
channel: log *
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment