LOG_ALERT_LEVEL issue in ossec-server.conf

Customer support forums for Atomic Protector (formerly Atomic Secured Linux). There is no such thing as a bad question here as long as it pertains to using Atomic Protector. Newbies feel free to get help getting started or asking questions that may be obvious. Regular users are asked to be gentle. :-)
anwarpp
Forum User
Forum User
Posts: 15
Joined: Sun Feb 17, 2008 9:04 pm

LOG_ALERT_LEVEL issue in ossec-server.conf

Unread post by anwarpp »

Hi -

Everytime we update ASL settings and save the configuration from the UI on port 30000, the ossec-hids service starts throwing errors in its log file.

2015/05/17 05:38:24 ossec-config(1235): ERROR: Invalid value for element 'log_alert_level': @@LOG_ALERT_LEVEL@@.
2015/05/17 05:39:34 ossec-config(1235): ERROR: Invalid value for element 'log_alert_level': @@LOG_ALERT_LEVEL@@.

Seems like the <log_alert_level> parameter is not getting substituted properly, and when I change it to "1" manually and restart the service, everything is fine.

Any ideas on why this variable is not getting substituted ? Also noticed that this variable is not among the ones that can be configured in the ASL web UI (but HIDS_EMAIL_ALERT_LEVEL is present there).

Thanks !
anwarpp
Forum User
Forum User
Posts: 15
Joined: Sun Feb 17, 2008 9:04 pm

Re: LOG_ALERT_LEVEL issue in ossec-server.conf

Unread post by anwarpp »

I see both HIDS_LOG_ALERT_LEVEL and HIDS_EMAIL_ALERT_LEVEL defined similarly.

[root@hosting1 ~]# find /var/asl -exec grep -H _ALERT_LEVEL {} \;
Binary file /var/asl/bin/asl matches
Binary file /var/asl/bin/aum matches
/var/asl/rules/ossec/templates/config.template:HIDS_EMAIL_ALERT_LEVEL="@@7@@"
/var/asl/rules/ossec/templates/config.template:HIDS_LOG_ALERT_LEVEL="@@1@@"
/var/asl/rules/ossec/templates/template-ossec-server.conf: <log_alert_level>@@LOG_ALERT_LEVEL@@</log_alert_level>
/var/asl/rules/ossec/templates/template-ossec-server.conf: <email_alert_level>@@EMAIL_ALERT_LEVEL@@</email_alert_level>
Binary file /var/asl/lib/modules/hids_check matches
/var/asl/data/templates/config.template:HIDS_EMAIL_ALERT_LEVEL="@@7@@"
/var/asl/data/templates/config.template:HIDS_LOG_ALERT_LEVEL="@@1@@"
/var/asl/data/templates/template-ossec-server.conf: <log_alert_level>@@LOG_ALERT_LEVEL@@</log_alert_level>
/var/asl/data/templates/template-ossec-server.conf: <email_alert_level>@@EMAIL_ALERT_LEVEL@@</email_alert_level>

The only difference so far is that I can see only the EMAIL one in the ASL Web UI. Would that be what is causing this problem ?
anwarpp
Forum User
Forum User
Posts: 15
Joined: Sun Feb 17, 2008 9:04 pm

Re: LOG_ALERT_LEVEL issue in ossec-server.conf

Unread post by anwarpp »

Noticed that we were on ASL3x, and an upgrade to ASL4x fixed everything.
Post Reply