Caddy Crowdsec no metrics
Hey, I have setup caddy with my lapi server
But I get no metrics on my local caddy server.
Is there any I can trigger some data on my caddy server? ๐
15 Replies
Important Information
Thank you for getting in touch with your support request. To expedite a swift resolution, could you kindly provide the following information? Rest assured, we will respond promptly, and we greatly appreciate your patience. While you wait, please check the links below to see if this issue has been previously addressed. If you have managed to resolve it, please use run the command
/resolve
or press the green resolve button below.Log Files
If you possess any log files that you believe could be beneficial, please include them at this time. By default, CrowdSec logs to /var/log/, where you will discover a corresponding log file for each component.
Guide Followed (CrowdSec Official)
If you have diligently followed one of our guides and hit a roadblock, please share the guide with us. This will help us assess if any adjustments are necessary to assist you further.
Screenshots
Please forward any screenshots depicting errors you encounter. Your visuals will provide us with a clear view of the issues you are facing.
ยฉ Created By WhyAydan for CrowdSec โค๏ธ
machine info from the lapi server
At the moment I dont believe Caddy support metrics to LAPI.
oh, that explains it ๐
is there any way I can trigger a http-cve or somethinh?
You can run a tool call
nikto
which scans CVE's on the webserver
however, just be careful as it will ban your IPBut based on the connection and all, it seems like I setup everything correctly?
thanks!
Yeah if you connected to
lapi
and your cscli metrics
are going up when handling connections (as in log lines unless your using appsec) then yeah lgtmAh cool,
this goes up on my lapi server when i access a service externaly on
Yeah so
caddy
is going to your LAPI
server, but the connect crowdsec will push alerts once it notices something on caddy itself.
You can run cscli metrics
on the connect one as well to see the parsed lines.connected one? my caddy server?
What's the recommended config for the caddy crowdsec plugin?
right now mine is,
That is fine, but what I meant was you configured your
caddy
to log to a file then the local crowdsec is monitoring those logs?Hmm, no. I have not configured anything like that, maybe I missed that?
I installed the plugin on caddy, created the bouncer on LAPI , took the api key, inserted into my caddy config, and then validated my machine on lapi.
Is there any more step?
Yes you would need to configure logging on Caddy, then setup an acquisition
here a snippet from my upcoming blog post
damn, i knew i missed something
That seem to have done it, I knew I had forgot somthing
This is my log in my global configuration
I just put "log" in my wildcard configuration so all my subdomains get logged and crowdsec
Like this
Another thing, im just trying this from my work computer
curl -I https://authelia.domain.com/admin
It shows whitelisted on cscli metrics
But it seems to be working now, thank you ๐
Hey, I have some very early support for metrics in the Caddy bouncer, but I disabled the updates from being sent, as there was some issue hitting the metrics endpoint on the CrowdSec instance. It might've been an issue just for this specific user, as I had it working fine in my environment, but since it was early I decided to just skip updating the metrics for now. It's still on my mind to get that working again, though ๐
Also some goodies on the way to test the interaction between Caddy and CrowdSec