Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Does this plugin use a standard syslog-ng mysql data schema?
I already have a syslog-ng mysql database setup which I am using with php-syslog-ng. I would like to utlize this database with the cacti syslog plugin.
Syslog must be setup to your table schema. You need to edit the config.php in the syslog plugin directory to properly align tables names. Your table names are different than what the plugin expects. In addition, the syslog plugin assumes an "incoming" table. I do not see one, but I assume you know what that table is.
Other than that, do a "show create table logs" and let's make sure it is optimized. Show us the results.
TheWitness
True understanding begins only when we realize how little we truly understand...
Just compared config.php syslog fields with my current mysql database fields.
'syslog_incoming' appears to be equivalent to 'logs' (in my db),
'date' & 'time' fields are split whereas in mine its 'datetime'. Not sure on the other 4 tables.
That's likely a problem. You should change your syslog-ng config file to split them using Jimmy's example. Do it in the database as well. Then make sure your config file is consistent with your schema.
You might simply want to update your syslog-ng config to one that matches what syslog is expecting though.
TheWitness
True understanding begins only when we realize how little we truly understand...
I see the GUI now when clicking on syslog-tab, but nothing gets imported to my database (syslog_incoming is empty). Could you tell me how to find out what the problem is?