PPF Home
Plugins
Developers
   Font size:      

HlLogSearch (v1.0)

PDF
PDF

Search Half-Life server logs.

The plugin allows to search Half-Life server logs, featuring simple search, case insensitive search, regular expression search and limiting the date range of searched files. For this to work the log files must be in a directory accessible by the bot.

Configuration

The configuration file for this plugin is system/FeedReader/HlLogSearchConfig.xml

authLevel

The min. auth level to use this plugin.


      <authLevel>ADMIN</authLevel>

    

commandLogs

Command to search the logs.


      <commandLogs>!logs</commandLogs>

      

logDir

Directory containing the logfiles.


    <logDir>/usr/local/hlds/logs</logDir>

    

maxResults

Max no. of search results sent back.


    <maxResults>15</maxResults>

    

Commands

Searching the logs

Command: !logs [-d date] [-e] [-i] <query>
Description: Searches half-life server log files for <query>
Auth level: ADMIN
Where to give command: channel or private message
Outputs to: notice to sender

Options:
-d date Limit the range of logfiles to search. Format is MM[DD]. Defaults to current date.
-e query is a regular expression
-i case insensitive search

Example(s):

  • !logs blah
  • !logs -i blah
  • !logs -d 12 banid
  • !logs -e (<TERROR>.*killed.*<TERROR>)|(<CT>.*killed.*<CT>)

Change History

v1.0 First Version by jawe