logdna-cli icon indicating copy to clipboard operation
logdna-cli copied to clipboard

Manage LogDNA instance configuration via CLI

Open nashluffy opened this issue 5 years ago • 3 comments

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.

nashluffy avatar Feb 24 '20 18:02 nashluffy

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.

andkon avatar Feb 24 '20 19:02 andkon

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!

nashluffy avatar Feb 24 '20 19:02 nashluffy

I think this is done with https://docs.logdna.com/reference#getting-started-with-the-configuration-api

nashluffy avatar Oct 30 '20 15:10 nashluffy