To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.
Logsearch
Jump to navigation
Jump to search
This is an external module. Please note that it may or may not work with the current release (1.9.1). This module is not included in the default ZNC installation, and you will need to manually compile it before you can load this module. Contact the author if you have any questions, but feel free to ask in #znc on Libera.Chat. Someone might be able to help you there. |
A log search module for ZNC ≥ 1.60.
Getting the Code
The code for this module can be found here. Example method of fetching the code:
$ mkdir ~/.znc/modules ; cd ~/.znc/modules/ $ git clone https://github.com/pR0Ps/znc-logsearch.git
Installation
Refer to the README or use the following example:
$ cd znc-logsearch $ cp logsearch.py ~/.znc/modules/
Requirements
Taken from the README:
1. The ZNC server must be running ZNC v1.6.0 or later.
2. The ZNC server must have the log module enabled using the default configuration.
3. The ZNC server must have grep
on the PATH of the user ZNC is running under.
4. The ZNC server must have modpython loaded.
Usage
Arguments
This user module takes no arguments.
Read loading modules to learn more about loading modules.
In your IRC client type /msg *status loadmodule logsearch
Commands
Commands can be found on the README
Example Output
+====================+========================================+ | Command | Description | +====================+========================================+ | ?/help | Shows the help text | +--------------------+----------------------------------------+ | * <query> | Search all logs for <query> | +--------------------+----------------------------------------+ | #<channel> <query> | Search logs in <channel> for <query> | +--------------------+----------------------------------------+ | @<user> <query> | Search logs to/from <user> for <query> | +====================+========================================+
Example Usage
+==================+===========================================================+ | Command | Result | +==================+===========================================================+ | #hi hi | Messages in the #hi channel saying "hi" | +------------------+-----------------------------------------------------------+ | @NickServ .* | Any private messages to/from NickServ | +------------------+-----------------------------------------------------------+ | @* hello | Any private messages saying "hello" | +------------------+-----------------------------------------------------------+ | #* znc | Mentions of ZNC in any channel | +------------------+-----------------------------------------------------------+ | #znc* testing | Messages in channels starting with "znc" saying "testing" | +------------------+-----------------------------------------------------------+ | * znc | Mentions of ZNC in any logs (channel or private message) | +------------------+-----------------------------------------------------------+ | * ] \* .* dances | Dancing users in any logs | +------------------+-----------------------------------------------------------+ | * .* | Any messages in any logs | +==================+===========================================================+