logdna-cli
logdna-cli copied to clipboard
Manage LogDNA instance configuration via CLI
Really should have a way to manage LogDNA instance (views, alerts, dashboards, etc...) from the CLI or Python. I want to configure alerts from a Python script, back up alerts, dashboards, restore from these JSON backups.
Even if you could just provide an endpoint for me to do this.
Hi @Nashluffy – I transferred the issue to our CLI repo. You can check out the docs for it here: https://docs.logdna.com/docs/logdna-cli
The configuration features you describe currently aren't available via the CLI, however, they are features we've built into the webapp itself: https://docs.logdna.com/docs/how-to-replicate-logdna-configurations
I'll create a feature request in our internal board to track this as a feature on the CLI, but I don't foresee it being a priority this year.
Hey thanks for getting back so quick. I'll go into more detail, wasn't sure that anyone would see my issue initially.
CLI Added Behavior:
- GET current views
- GET current dashboards
- GET current alerts
- POST create views
- POST create dashboards
- POST create alert
- POST update views
- POST update dashboards
- POST update alert
- POST detach alert
My selfish wish for the aforementioned behaviors mainly revolve around updates to our hosts.
- Whenever we bring a node down, we have to go into the UI and manually detach the alerts.
- Whenever we want to add a new view across all LogDNA instances, we have to go into each UI
Hope this helps. Thanks!
I think this is done with https://docs.logdna.com/reference#getting-started-with-the-configuration-api