Difference between revisions of "2.0/Modules/os logsearch"
From AnopeWiki
(Created page with "{{Language|2.0/Modules/os_logsearch}} {{Syntax|os_logsearch|OperServ|Anope}} == <div class="moduleheader">Description</div> == This command searches the Services logfiles for...") |
(No difference)
|
Latest revision as of 22:20, 8 May 2014
Language | |
---|---|
English |
|
Description
This command searches the Services logfiles for messages that match the given pattern. The day and limit argument may be used to specify how many days of logs to search and the number of replies to limit to. By default this command searches one week of logs, and limits replies to 50.
Commands
- logsearch [+daysd] [+limitl] pattern
Examples
/msg OperServ LOGSEARCH +1d +25l Fred
Default Configuration
/* * os_logsearch * * Provides the command operserv/logsearch. * * Used to search services log files. */ module { name = "os_logsearch" /* The log file name to search. There should be a log{} block configured to log * to a file of this name. */ logname = "services.log" } command { service = "OperServ"; name = "LOGSEARCH"; command = "operserv/logsearch"; permission = "operserv/logsearch"; }