20.06.2015 Views

Building Collector Plugins 1.1 - AlienVault

Building Collector Plugins 1.1 - AlienVault

Building Collector Plugins 1.1 - AlienVault

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Building</strong> <strong>Collector</strong> <strong>Plugins</strong> - Admin Guide<br />

[config]<br />

type:<br />

enable:<br />

source:<br />

location:<br />

create_file:<br />

process:<br />

start:<br />

stop:<br />

startup:<br />

shutdown:<br />

exclude_sids=SID List<br />

Example (hp-eva):<br />

detector<br />

process=snmptrapd<br />

start=yes<br />

stop=yes<br />

startup=/etc/init.d/snmpd start<br />

shutdown=/etc/init.d/snmpd stop<br />

exclude_sids=404,200,403<br />

Enable or Disable the plugin (It must be enabled in config.cfg)<br />

Source of the events (log, mssql, mysql, wmi)<br />

The file(s) where the logs can be found - can contain multiple<br />

comma-separated files<br />

Create the log file in case it does not exist<br />

Name of the process generating logs (If on the same system)<br />

Start the process when the agent starts (yes/no)<br />

Stop the process when the agent stops (yes/no)<br />

Command that starts the process<br />

Command that stops the process<br />

Use this option to exclude SIDs<br />

[translation]<br />

string=value<br />

Used to map strings to their corresponding values<br />

Example (Postfix):<br />

[translation]<br />

sent=10<br />

bounced=11<br />

[Rule IDs – Specific Rules]<br />

Here are the events collected and normalized.<br />

event_type=event<br />

regexp=Regular Expression<br />

plugin_sid=Plugin SID<br />

Event_Field=Value<br />

Example(ssh):<br />

[01 - Failed password]<br />

event_type=event<br />

regexp="(\SYSLOG_DATE)\s+(?P[^\s]*).*?ssh.*?Failed password for inval<br />

user (?P\S+)\s+from\s+.*?(?P\IPV4).*?port\s+(?P\PORT)"<br />

plugin_sid=1<br />

date={normalize_date($1)}<br />

Page 14 Copyright © Alienvault 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!