107 lines
3.2 KiB
JSON
107 lines
3.2 KiB
JSON
[
|
|
{
|
|
"_comment": "Example log entry from a web server",
|
|
"timestamp": "2024-01-26T10:00:00.000Z",
|
|
"log_level": "INFO",
|
|
"component": "web_server",
|
|
"message": "Request received",
|
|
"request_id": "a1b2c3d4e5f6",
|
|
"client_ip": "192.168.1.100",
|
|
"http_method": "GET",
|
|
"http_path": "/api/users",
|
|
"http_status_code": 200,
|
|
"response_time_ms": 123
|
|
},
|
|
{
|
|
"_comment": "Example log entry from a database",
|
|
"timestamp": "2024-01-26T10:00:01.000Z",
|
|
"log_level": "DEBUG",
|
|
"component": "database",
|
|
"message": "SQL query executed",
|
|
"query": "SELECT * FROM users WHERE id = 1",
|
|
"execution_time_ms": 5,
|
|
"rows_returned": 1
|
|
},
|
|
{
|
|
"_comment": "Example log entry from an application",
|
|
"timestamp": "2024-01-26T10:00:02.000Z",
|
|
"log_level": "ERROR",
|
|
"component": "application",
|
|
"message": "Error processing request",
|
|
"error_code": 500,
|
|
"error_message": "Internal server error",
|
|
"request_id": "a1b2c3d4e5f6",
|
|
"user_id": 123
|
|
},
|
|
{
|
|
"_comment": "Example log entry from a system",
|
|
"timestamp": "2024-01-26T10:00:03.000Z",
|
|
"log_level": "WARN",
|
|
"component": "system",
|
|
"message": "Disk space nearing capacity",
|
|
"disk_usage_percent": 90,
|
|
"disk_path": "/var/log"
|
|
},
|
|
{
|
|
"_comment": "Example log entry from a security component",
|
|
"timestamp": "2024-01-26T10:00:04.000Z",
|
|
"log_level": "INFO",
|
|
"component": "security",
|
|
"message": "Authentication successful",
|
|
"user_id": 456,
|
|
"username": "testuser",
|
|
"client_ip": "192.168.1.200"
|
|
},
|
|
{
|
|
"_comment": "Example log entry for authentication failure",
|
|
"timestamp": "2024-01-26T10:00:05.000Z",
|
|
"log_level": "WARN",
|
|
"component": "security",
|
|
"message": "Authentication failed",
|
|
"username": "invaliduser",
|
|
"client_ip": "192.168.1.200",
|
|
"reason": "Invalid password"
|
|
},
|
|
{
|
|
"_comment": "Example log entry from a microservice",
|
|
"timestamp": "2024-01-26T10:00:06.000Z",
|
|
"log_level": "INFO",
|
|
"component": "microservice-auth",
|
|
"message": "User authenticated",
|
|
"user_id": 789,
|
|
"username": "validuser",
|
|
"service_name": "auth-service"
|
|
},
|
|
{
|
|
"_comment": "Example log entry with exception details",
|
|
"timestamp": "2024-01-26T10:00:07.000Z",
|
|
"log_level": "ERROR",
|
|
"component": "application",
|
|
"message": "Unhandled exception",
|
|
"exception_type": "NullPointerException",
|
|
"exception_message": "Object reference not set to an instance of an object.",
|
|
"stack_trace": "at MyApp.Main.DoSomething() in MyApp.cs:line 20",
|
|
"request_id": "g7h8i9j0k1l2"
|
|
},
|
|
{
|
|
"_comment": "Example log entry with metrics",
|
|
"timestamp": "2024-01-26T10:00:08.000Z",
|
|
"log_level": "INFO",
|
|
"component": "monitoring",
|
|
"message": "System metrics",
|
|
"cpu_usage_percent": 35,
|
|
"memory_usage_percent": 60,
|
|
"network_throughput_kbps": 1024
|
|
},
|
|
{
|
|
"_comment": "Example log entry with audit information",
|
|
"timestamp": "2024-01-26T10:00:09.000Z",
|
|
"log_level": "INFO",
|
|
"component": "audit",
|
|
"message": "User profile updated",
|
|
"user_id": 123,
|
|
"updated_field": "email",
|
|
"old_value": "old@example.com",
|
|
"new_value": "new@example.com"
|
|
}
|
|
] |