List log facets
curl --request POST \
--url https://my.orq.ai/v3/logs/facets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"key_limit": 123,
"value_limit": 123,
"query": "<string>",
"filter_operator": "<string>",
"filters": [
{
"field": "<string>",
"op": "<string>",
"values": [
"<string>"
]
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
from: '2023-11-07T05:31:56Z',
to: '2023-11-07T05:31:56Z',
key_limit: 123,
value_limit: 123,
query: '<string>',
filter_operator: '<string>',
filters: [{field: '<string>', op: '<string>', values: ['<string>']}]
})
};
fetch('https://my.orq.ai/v3/logs/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.orq.ai/v3/logs/facets"
payload = {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"key_limit": 123,
"value_limit": 123,
"query": "<string>",
"filter_operator": "<string>",
"filters": [
{
"field": "<string>",
"op": "<string>",
"values": ["<string>"]
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"groups": [
{
"name": "<string>",
"keys": [
{
"key": "<string>",
"field": "<string>",
"log_count": "<string>",
"distinct_value_count": "<string>",
"top_values": [
{
"value": "<string>",
"count": "<string>"
}
],
"filterable": true
}
]
}
]
}Logs
List log facets
Return the facet hierarchy: attribute families (native, attribute, resource, scope) with their keys, counts, and top values. Accepts optional filters and free-text query to narrow the counted subset.
POST
/
v3
/
logs
/
facets
List log facets
curl --request POST \
--url https://my.orq.ai/v3/logs/facets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"key_limit": 123,
"value_limit": 123,
"query": "<string>",
"filter_operator": "<string>",
"filters": [
{
"field": "<string>",
"op": "<string>",
"values": [
"<string>"
]
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
from: '2023-11-07T05:31:56Z',
to: '2023-11-07T05:31:56Z',
key_limit: 123,
value_limit: 123,
query: '<string>',
filter_operator: '<string>',
filters: [{field: '<string>', op: '<string>', values: ['<string>']}]
})
};
fetch('https://my.orq.ai/v3/logs/facets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.orq.ai/v3/logs/facets"
payload = {
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z",
"key_limit": 123,
"value_limit": 123,
"query": "<string>",
"filter_operator": "<string>",
"filters": [
{
"field": "<string>",
"op": "<string>",
"values": ["<string>"]
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"groups": [
{
"name": "<string>",
"keys": [
{
"key": "<string>",
"field": "<string>",
"log_count": "<string>",
"distinct_value_count": "<string>",
"top_values": [
{
"value": "<string>",
"count": "<string>"
}
],
"filterable": true
}
]
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
200 - application/json
OK
Show child attributes
Show child attributes
Was this page helpful?