cURL
curl --request GET \
--url https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config \
--header 'API-Token: <api-key>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config")
.header("API-Token", "<api-key>")
.asString();const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};
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"
headers = {"API-Token": "<api-key>"}
response = requests.get(url, 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>"
}{}ReadLogIngestConfig
GET
/
api
/
v1
/
config
/
log-ingest-config
cURL
curl --request GET \
--url https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config \
--header 'API-Token: <api-key>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("API-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{tenant}.chronosphere.io/api/v1/config/log-ingest-config")
.header("API-Token", "<api-key>")
.asString();const options = {method: 'GET', headers: {'API-Token': '<api-key>'}};
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"
headers = {"API-Token": "<api-key>"}
response = requests.get(url, 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>"
}{}⌘I

