sumologic
Cloud-native, real-time, unified logs and metrics analytics platform.
total methods: 267
total selectable resources: 83
See also:
[SHOW
] [DESCRIBE
] [REGISTRY
]
Installation
To pull the latest version of the sumologic
provider, run the following command:
REGISTRY PULL sumologic;
To view previous provider versions or to pull a specific provider version, see here.
Authentication
The SUMOLOGIC_CREDS
environment variable is used by default to store credentials to authorize requests to Sumologic. This variable is sourced at runtime (from the local machine or as a CI variable/secret). The variable should be populated with a Base64 encoded string comprised of yoru Sumologic username and an Access Token, as shown here:
export SUMOLOGIC_CREDS=$(echo -n 'youraccessid:YOURACCESSTOKEN' | base64 --wrap 0)
or using PowerShell:
$env:SUMOLOGIC_CREDS = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("youraccessid:YOURACCESSTOKEN"))
More information on obtaining a Sumologic Access Token can be found here.
Using a different environment variable
To use a different environment variable (instead of the default), use the --auth
flag of the stackql
program. For example:
export YOUR_SUMO_CREDS_VAR=$(echo -n 'youraccessid:YOURACCESSTOKEN' | base64 --wrap 0)
AUTH='{ "sumologic": { "type": "basic", "credentialsenvvar": "YOUR_SUMO_CREDS_VAR" } }'
stackql shell --auth="${AUTH}"
or using PowerShell:
$env:YOUR_SUMO_CREDS_VAR = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("youraccessid:YOURACCESSTOKEN"))
$Auth = "{ 'sumologic': { 'type': 'basic', 'credentialsenvvar': 'YOUR_SUMO_CREDS_VAR' } }"
stackql.exe shell --auth=$Auth