59 lines
2.0 KiB
JSON
59 lines
2.0 KiB
JSON
|
|
{
|
||
|
|
"index_patterns": ["app-logs-*"],
|
||
|
|
"priority": 200,
|
||
|
|
"template": {
|
||
|
|
"settings": {
|
||
|
|
"number_of_shards": 1,
|
||
|
|
"number_of_replicas": 0,
|
||
|
|
"refresh_interval": "5s"
|
||
|
|
},
|
||
|
|
"mappings": {
|
||
|
|
"dynamic": true,
|
||
|
|
"properties": {
|
||
|
|
"@timestamp": { "type": "date" },
|
||
|
|
"level": { "type": "keyword" },
|
||
|
|
"logger": { "type": "keyword" },
|
||
|
|
"service": { "type": "keyword" },
|
||
|
|
"environment": { "type": "keyword" },
|
||
|
|
"event": { "type": "keyword" },
|
||
|
|
"message": { "type": "text" },
|
||
|
|
"request_id": { "type": "keyword" },
|
||
|
|
"user_id": { "type": "long" },
|
||
|
|
"user_role": { "type": "keyword" },
|
||
|
|
"client_ip": { "type": "ip" },
|
||
|
|
"user_agent": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } },
|
||
|
|
"http_method": { "type": "keyword" },
|
||
|
|
"http_path": { "type": "keyword" },
|
||
|
|
"http_status": { "type": "short" },
|
||
|
|
"duration_ms": { "type": "float" },
|
||
|
|
"backend": { "type": "keyword" },
|
||
|
|
"took_ms": { "type": "integer" },
|
||
|
|
"result_count": { "type": "integer" },
|
||
|
|
"query": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } },
|
||
|
|
"sort": { "type": "keyword" },
|
||
|
|
"page": { "type": "integer" },
|
||
|
|
"page_size": { "type": "integer" },
|
||
|
|
"filters": {
|
||
|
|
"properties": {
|
||
|
|
"skills": { "type": "keyword" },
|
||
|
|
"roles": { "type": "keyword" },
|
||
|
|
"seniority": { "type": "keyword" },
|
||
|
|
"countries": { "type": "keyword" },
|
||
|
|
"industries": { "type": "keyword" },
|
||
|
|
"companies": { "type": "keyword" },
|
||
|
|
"min_experience": { "type": "integer" },
|
||
|
|
"max_experience": { "type": "integer" }
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"error": {
|
||
|
|
"properties": {
|
||
|
|
"type": { "type": "keyword" },
|
||
|
|
"message": { "type": "text" },
|
||
|
|
"stack": { "type": "text", "index": false }
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|