You need to configure your lamp software to push apache and mariadb consumption logs to logbox server.
First, you have to activate slapmonitor as a service by configuring the corresponding section in both stack/lamp/instance-apache-php.cfg and stack/lamp/instance-mariadb.cfg :
# Deploy slapmonitor
...stack/lamp/instance-apache-php.cfg
[slapmonitor]
recipe = slapos.cookbook:slapmonitor
pid-file = $${basedirectory:run}/apache.pid
database-path = $${basedirectory:log}/slapmonitor.db
shell-path = ${dash:location}/bin/dash
slapmonitor-path = ${buildout:bin-directory}/slapmonitor
path = $${basedirectory:services}/slapmonitor
...stack/lamp/instance-mariadb.cfg
[slapmonitor]
recipe = slapos.cookbook:slapmonitor
pid-file = $${basedirectory:run}/mariadb.pid
database-path = $${basedirectory:log}/slapmonitor.db
shell-path = ${dash:location}/bin/dash
slapmonitor-path = ${buildout:bin-directory}/slapmonitor
path = $${basedirectory:services}/slapmonitor
Restart your instance.
At this stage, your consumption log should be stored in a file named slapmonitor.db located in the log folder of the instance base-directory.
Now you can configure slapreport to push the consumtion log to an existing logbox server.
Configure the Wallix LogBox Server
Connect to your logbox server, go to the "Input section" and create an ssh input.
Give a name to your "logbox input" and copy/past the public key of the user (slapuserXX) running the software (should be located in .../slapuserXX/.ssh, if not you have to create it).
Configure the Software Instance:
Edit the "slapreport" section in both stack/lamp/instance-apache-php.cfg and stack/lamp/instance-mariadb.cfg and indicate the ssh parameter of the logbox server:
...stack/lamp/instance-apache-php.cfg
[slapreport]
recipe = slapos.cookbook:slapreport
pid-file = $${basedirectory:run}/apache.pid
consumption-log-path = $${basedirectory:log}/instance_consumption.log
database-path = $${basedirectory:log}/slapmonitor.db
logbox-ip = 87.98.152.12
logbox-port = 5122
logbox-user = admin
logbox-passwd = passer
shell-path = ${dash:location}/bin/dash
slapreport-path = ${buildout:bin-directory}/slapreport
path = $${basedirectory:services}/slapreport
...stack/lamp/instance-mariadb.cfg
[slapreport]
recipe = slapos.cookbook:slapreport
pid-file = $${basedirectory:run}/apache.pid
consumption-log-path = $${basedirectory:log}/instance_consumption.log
database-path = $${basedirectory:log}/slapmonitor.db
logbox-ip = 87.98.152.12
logbox-port = 5122
logbox-user = admin
logbox-passwd = passer
shell-path = ${dash:location}/bin/dash
slapreport-path = ${buildout:bin-directory}/slapreport
path = $${basedirectory:services}/slapreport
Restart your instance.
Your consumption log should now be pushed to the logbox server. You can check by clicking the "display the logs" button of your "logbox input".