SQLite & MySQL
The default database of Crowdsec is SQLite. While MySQL is supported as well (>= 0.3.0), it is not in the scope of this documentation.
The metabase dashboard can be setup with :
--port options allow you to control on which address / port will the docker be binded.
cscli dashboard setup output
INFO /var/lib/crowdsec/data/metabase.db exists, skip. INFO Downloaded metabase DB INFO Pulling docker image metabase/metabase ... INFO Creating container INFO Starting container INFO Started metabase INFO Waiting for metabase API to be up (can take up to a minute) ........... INFO Metabase API is up INFO Successfully authenticated INFO Changed password ! INFO Setup finished INFO url : http://127.0.0.1:3000 INFO username: firstname.lastname@example.org INFO password: W1XJb8iw1A02U5nW7xxxxXXXxxXXXxXXxxXXXxxxXxXxXxXPdbvQdLlshqqPg8pf
dashboard setup command will output generated credentials for metabase.
Don't forget to save those !
Now you can connect to your dashboard, sign-in with your saved credentials then click on Crowdsec Dashboard to get this:
Dashboard docker image can be managed by cscli and docker cli also. Look at the cscli help command using