Example of ECS 8 compatible json log
- User
Example of ECS 8 compatible json log
- Assistant
ECS, which stands for Elastic Common Schema, provides a standardized way to structure your logs for easier analysis and correlation. Version 8 of ECS continues to build on this foundation. Here's an example of a JSON log formatted according to ECS 8:
json - User
Leave only necessary fields for ECS 8 compatibility
- Assistant
To maintain ECS 8 compatibility with only the necessary fields, you can focus on a minimal set that still retains essential information while allowing easy integration with systems that use ECS. Here’s a pared-down example:
json{ "@timestamp": "2023-10-19T12:55:38.123Z", "ecs": { "version": "8.0.0" }, "event": { "category": "authentication", "kind": "event", "outcome": "success" }, "message": "User login successful" }Explanation of Fields:
@timestamp: The time at which the event occurred, crucial for temporal analysis and sorting of logs.ecs.version: Indicates the ECS version, ensuring compatibility and understanding of the schema layout.event.category: Defines the broad category of the event, in this case, "authentication."event.kind: Describes the nature of the event data, such as a state change or a metric, here it is an "event."