Closed
Description
Parent Issue: #241
Description
The events generated by the agent must adhere to the common schema for consistency and compatibility across systems.
Details
- Each index mapping is defined in the repository: wazuh-indexer-plugins
- Each field is documented according to the ECS and can be referenced in the Elastic documentation.
Format body stateless and stateful
Stateless
{
"agent": {
"id": "2887e1cf-9bf2-431a-b066-a46860080f56",
"name": "agent1",
"type": "endpoint",
"version": "5.0.0",
"groups": ["group1", "group2"],
"host": {
"hostname": "myhost",
"os": {
"name": "Amazon Linux 2"
"platform": "Linux"
},
"ip": ["192.168.1.2"],
"architecture": "x86_64"
}
}
}
{
"module": "logcollector",
"type": "file"
}
{
"log": {
"file": {
"path": "string"
}
},
"tags": ["string"],
"event": {
"original": "string",
"ingested": "string",
"module": "string",
"provider": "string"
}
}
{
"module": "inventory",
"type": "package"
}
{
"log": {
"file": {
"path": "string"
}
},
"tags": ["string"],
"event": {
"original": "string",
"ingested": "string",
"module": "string",
"provider": "string"
}
}
Stateful
{
"agent": {
"id": "2887e1cf-9bf2-431a-b066-a46860080f56",
"name": "agent1",
"type": "endpoint",
"version": "5.0.0",
"groups": ["group1", "group2"],
"host": {
"hostname": "myhost",
"os": {
"name": "Amazon Linux 2"
"platform": "Linux"
},
"ip": ["192.168.1.2"],
"architecture": "x86_64"
}
}
}
{
"module": "inventory",
"type": "package",
"operation": "modified",
"id": "lskdjf023984902358"
}
{
"scan_time": "2024-10-28T18:26:10.634Z",
"package": {
"architecture": "string",
"description": "string",
"installed": "2024-10-28T18:26:10.634Z",
"name": "string",
"path": "string",
"size": 0,
"type": "string",
"version": "string"
}
}
{
"module": "inventory",
"type": "network",
"operation": "add",
"id": "lskdjf023984902358"
}
{
"scan_time": "2024-10-28T18:26:10.634Z",
"package": {
"architecture": "string",
"description": "string",
"installed": "2024-10-28T18:26:10.634Z",
"name": "string",{
"agent": {
"uuid": "UUID",
"groups": [ ],
"os": "Amazon Linux 2",
"platform": "Linux",
"type": "Endpoint",
"version": "5.0.0",
"ip": "192.168.1.2" }
}
"path": "string",
"size": 0,
"type": "string",
"version": "string"
}
}
{
"module": "inventory",
"type": "network",
"operation": "delete",
"id": "asdfsdfkdsj98237498325"
}
Tasks
- Refactor Message Output for Common Schema Compliance #291
- Queue update.
- Update Logcollector module to support new Stateless message structure.
- Update agent message output so that the body objects comply with the new defined format, similar to a JSON stream.
- Update Inventory Module for Common Schema Compliance #292
- Update Hardware Inventory Format #296
- Update System Inventory Format #293
- Update Processes Inventory Format #295
- Update Packages Inventory Format #297
- Update Hotfixes Inventory Format #298
- Update Ports Inventory Format #299
- Refactor network interfaces and protocols inventory tables #284
- Update Network Inventory Format #294