> The log message is from the httpd error log. Here is the part
> of the log where I notice.
>
> [Sun Oct 13 12:33:29 2013] [error] [client 103.246.38.196] Directory index
> forbidden by Options directive: /var/www/html/*******/
> [Sun Oct 13 12:33:30 2013] [error] [client 103.246.38.196] File does not
> exist: /var/www/html/images
> [Sun Oct 13 12:33:30 2013] [error] [client 103.246.38.196] Directory index
> forbidden by Options directive: /var/www/html/******/images/
>
The rules that match these log messages won't trigger an email or
anything. So you'll have to create better rules for them.
/tmp/xxx contains the log messages above.
# cat /tmp/xxx | /var/ossec/bin/ossec-logtest
2013/11/07 10:23:20 ossec-testrule: INFO: Reading local decoder file.
2013/11/07 10:23:21 ossec-testrule: INFO: Started (pid: 16416).
ossec-testrule: Type one log per line.
**Phase 1: Completed pre-decoding.
full event: '[Sun Oct 13 12:33:29 2013] [error] [client
103.246.38.196] Directory index forbidden by Options directive:
/var/www/html/*******/'
hostname: 'arrakis'
program_name: '(null)'
log: '[error] [client 103.246.38.196] Directory index forbidden
by Options directive: /var/www/html/*******/'
**Phase 2: Completed decoding.
decoder: 'apache-errorlog'
srcip: '103.246.38.196'
**Phase 3: Completed filtering (rules).
Rule id: '30101'
Level: '0'
Description: 'Apache error messages grouped.'
**Phase 1: Completed pre-decoding.
full event: '[Sun Oct 13 12:33:30 2013] [error] [client
103.246.38.196] File does not exist: /var/www/html/images'
hostname: 'arrakis'
program_name: '(null)'
log: '[error] [client 103.246.38.196] File does not exist:
/var/www/html/images'
**Phase 2: Completed decoding.
decoder: 'apache-errorlog'
srcip: '103.246.38.196'
**Phase 3: Completed filtering (rules).
Rule id: '30112'
Level: '0'
Description: 'Attempt to access an non-existent file (those are
reported on the access.log).'
> What should I look for the ossec.log for the syscheckd ? What is the command
> to turning the debug for syscheckd ?
>
Kill ossec-syscheckd, then run `/var/ossec/bin/ossec-syscheckd -d`