cURL
curl --request PUT \
--url https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("API-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config")
.header("API-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();const options = {
method: 'PUT',
headers: {'API-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config"
payload = {}
headers = {
"API-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"log_ingest_config": {
"created_at": "2023-11-07T05:31:56Z",
"field_normalization": {
"custom_field_normalization": [
{
"normalization": {
"default_value": "<string>",
"sanitize_patterns": [
"<string>"
],
"source": [
{
"selector": "<string>"
}
],
"value_map": {}
},
"target": "<string>"
}
],
"message": {
"default_value": "<string>",
"sanitize_patterns": [
"<string>"
],
"source": [
{
"selector": "<string>"
}
],
"value_map": {}
},
"service": {
"default_value": "<string>",
"sanitize_patterns": [
"<string>"
],
"source": [
{
"selector": "<string>"
}
],
"value_map": {}
},
"severity": {
"default_value": "<string>",
"sanitize_patterns": [
"<string>"
],
"source": [
{
"selector": "<string>"
}
],
"value_map": {}
},
"timestamp": {
"source": [
{
"selector": "<string>"
}
]
}
},
"field_parsers": [
{
"destination": {
"selector": "<string>"
},
"parser": {
"grok_parser": {
"pattern": "<string>"
},
"key_value_parser": {
"delimiter": "<string>",
"pair_separator": "<string>",
"trim_set": "<string>"
},
"regex_parser": {
"regex": "<string>"
}
},
"source": {
"selector": "<string>"
}
}
],
"plaintext_parsers": [
{
"keep_original": true,
"name": "<string>",
"parser": {
"grok_parser": {
"pattern": "<string>"
},
"key_value_parser": {
"delimiter": "<string>",
"pair_separator": "<string>",
"trim_set": "<string>"
},
"regex_parser": {
"regex": "<string>"
}
}
}
],
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{}UpdateLogIngestConfig
PUT
/
api
/
v1
/
config
/
log-ingest-config
cURL
curl --request PUT \
--url https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("API-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config")
.header("API-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();const options = {
method: 'PUT',
headers: {'API-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config"
payload = {}
headers = {
"API-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"log_ingest_config": {
"created_at": "2023-11-07T05:31:56Z",
"field_normalization": {
"custom_field_normalization": [
{
"normalization": {
"default_value": "<string>",
"sanitize_patterns": [
"<string>"
],
"source": [
{
"selector": "<string>"
}
],
"value_map": {}
},
"target": "<string>"
}
],
"message": {
"default_value": "<string>",
"sanitize_patterns": [
"<string>"
],
"source": [
{
"selector": "<string>"
}
],
"value_map": {}
},
"service": {
"default_value": "<string>",
"sanitize_patterns": [
"<string>"
],
"source": [
{
"selector": "<string>"
}
],
"value_map": {}
},
"severity": {
"default_value": "<string>",
"sanitize_patterns": [
"<string>"
],
"source": [
{
"selector": "<string>"
}
],
"value_map": {}
},
"timestamp": {
"source": [
{
"selector": "<string>"
}
]
}
},
"field_parsers": [
{
"destination": {
"selector": "<string>"
},
"parser": {
"grok_parser": {
"pattern": "<string>"
},
"key_value_parser": {
"delimiter": "<string>",
"pair_separator": "<string>",
"trim_set": "<string>"
},
"regex_parser": {
"regex": "<string>"
}
},
"source": {
"selector": "<string>"
}
}
],
"plaintext_parsers": [
{
"keep_original": true,
"name": "<string>",
"parser": {
"grok_parser": {
"pattern": "<string>"
},
"key_value_parser": {
"delimiter": "<string>",
"pair_separator": "<string>",
"trim_set": "<string>"
},
"regex_parser": {
"regex": "<string>"
}
}
}
],
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{}Authorizations
Chronosphere API token
Body
application/json
If true, the LogIngestConfig will be created if it does not already exist. If false, an error will be returned if the LogIngestConfig does not already exist.
If true, validates the specified configuration without creating or updating the LogIngestConfig. If the specified configuration is valid, the endpoint returns a partial response without the LogIngestConfig. If the specified configuration is invalid, the endpoint returns an error.
The LogIngestConfig to update.
Show child attributes
Show child attributes
Response
A successful response containing the updated LogIngestConfig.
LogIngestConfig is a singleton configuration object that specifies the configuration for log ingest.
Show child attributes
Show child attributes
⌘I

