Security Events logging stops after update

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. :-)
imadsani
Forum Regular
Forum Regular
Posts: 112
Joined: Mon Sep 16, 2013 10:10 am
Location: Lahore

Security Events logging stops after update

Unread post by imadsani »

I've noticed that events stop being logged every time I update ASL, I usually need to reboot to get it to work again.
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: Security Events logging stops after update

Unread post by prupert »

Is ossec-dbd running after the update (service ossec-hids status)?
Any errors in /var/ossec/logs/ossec.log?
Is your event database OK (mysqlcheck tortix)?
Lemonbit Internet Dedicated Server Management
imadsani
Forum Regular
Forum Regular
Posts: 112
Joined: Mon Sep 16, 2013 10:10 am
Location: Lahore

Re: Security Events logging stops after update

Unread post by imadsani »

I tried posting the output from the log but ASL on the forum kicked me out

I've removed parts from the error log which I thought may get blocked again
Output from /var/ossec/logs/ossec.log says:

Code: Select all

ERROR: Queue '/queue/alerts/ar' not accessible: 'Connection refused'.
 ossec-analysisd(1301): ERROR: Unable to connect to active response queue.
ossec-dbd(5203): ERROR: Error executing query ... Error: 'Unknown column 'tld' in 'NEW''.
ossec-dbd(5209): INFO: Closing connection to database.
ossec-dbd(5210): INFO: Attempting to reconnect to database.
ossec-dbd: Connected to database 'tortix' at '127.0.0.1'.
ossec-dbd(5204): ERROR: Database error. Unable to run query.

mysqlcheck tortix

Code: Select all

Warning: Using a password on the command line interface can be insecure.
tortix.ARCHIVE_201406                              OK
tortix.agent                                       OK
tortix.alert                                       OK
tortix.aslw_archive_tmp                            OK
tortix.aslw_blocklist                              OK
tortix.aslw_domain_block                           OK
tortix.aslw_geo_range                              OK
tortix.aslw_log                                    OK
tortix.aslw_mtimes                                 OK
tortix.aslw_rules                                  OK
tortix.aslw_rules_build                            OK
tortix.aslw_saved_search                           OK
tortix.aslw_stat_dow_hod                           OK
tortix.aslw_stat_geo                               OK
tortix.aslw_stat_ip                                OK
tortix.aslw_stat_rule                              OK
tortix.aslw_user                                   OK
tortix.aslw_user_group                             OK
tortix.aslw_user_settings                          OK
tortix.category                                    OK
tortix.location                                    OK
tortix.pgui_bl_reason                              OK
tortix.pgui_hids_cat                               OK
tortix.pgui_rule_def                               OK
tortix.pgui_waf_cat                                OK
tortix.pgui_waf_cat_rule_map                       OK
tortix.pgui_waf_rules                              OK
tortix.server                                      OK
tortix.signature                                   OK
tortix.signature_category_mapping                  OK
service ossec-hids status

Code: Select all

ossec-monitord is running...
ossec-logcollector is running...
ossec-remoted: Process 13110 not used by ossec, removing ..
ossec-remoted not running...
ossec-syscheckd is running...
ossec-analysisd is running...
ossec-maild is running...
ossec-execd is running...
ossec-dbd is running...
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: Security Events logging stops after update

Unread post by prupert »

You can try to reinstall your ASL database.

Code: Select all

/var/asl/bin/database-setup
Lemonbit Internet Dedicated Server Management
Post Reply