Documentation forLoggly

API: Account Info

The scripts are not supported under any SolarWinds support program or service. The scripts are provided AS IS without warranty of any kind. SolarWinds further disclaims all warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The risk arising out of the use or performance of the scripts and documentation stays with you. In no event shall SolarWinds or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the scripts or documentation.

Customer account information can be retrieved by issuing a GET request against a URL of the following format:

https://<account>.loggly.com/apiv2/customer 

An example of a request and response:

$ curl -u user:pass https://example.loggly.com/apiv2/customer 

{
  "tokens": [
    "bc6b16c6-21fc-44fc-aad4-3a9c6ea596e5", 
    "91588529-90b1-4d9c-8908-db9b90c2d725"
  ], 
  "subdomain": "example", 
  "subscription": {
    "volume_limit_mb": 200, 
    "retention_days": 7
  }
} 

The response will be a JSON-encoded body with properties enumerating various account information.

Field Description
tokens List of Customer Tokens available for authorizing the event stream.
subdomain The account name.
subscription Information about the account’s current subscription.
archive-s3-bucket Forthcoming. Name of a bucket on S3 to which we are writing archived events.