Hello
Sorry. Not alarm.json - i mean /var/ossec/logs/alerts/alerts.json
The main problem is that new events from Office365 are not visible in the dashboard.
Log example in alert.json
{"timestamp":"2025-11-19T11:55:30.210+0200","rule":{"level":3,"description":"Office 365: Events from Microsoft Teams.","id":"91555","firedtimes":21,"mail":false,"groups":["office365","MicrosoftTeams"],"hipaa":["164.312.b"],"pci_dss":["10.6.2"]},"agent":{"id":"000","name":"templates"},"manager":{"name":"templates"},"id":"1763546130.600115992","cluster":{"name":"wazuh","node":"master-node"},"decoder":{"name":"json"},"data":{"integration":"office365","office365":{"AppAccessContext":{"AADSessionId":"006f4479-e689-3239-7138-3b49527b4114","IssuedAtTime":"2025-11-19T09:00:50","UniqueTokenId":"Cxs4bMxCvXs8eAA"},"CreationTime":"2025-11-19T09:08:50","Id":"f4a9fcc9-5180-53ec-a897-c24241e76b05","Operation":"ReactedToMessage","OrganizationId":"df91ddb0-c807-4b5e-8","RecordType":"25","UserKey":"993440f3-f6db-4ca7-aae1c","UserType":"0","Version":"1","Workload":"MicrosoftTeams","ClientIP":"91.202.73.115","UserId":"
us...@domain.ua","ChatThreadId":"19:79a9a9a2cf394bd0...@thread.v2","CommunicationType":"GroupChat","DeviceId":"41002e2d-dfc3-45a2-93ab-eb8f8bdb03f3","ExtraProperties":[{"Key":"TimeZone","Value":"Europe/Kiev"},{"Key":"OsName","Value":"windows"},{"Key":"OsVersion","Value":"NT 10.0"},{"Key":"Country","Value":"ua"},{"Key":"ClientName","Value":"skypeteams"},{"Key":"ClientVersion","Value":"49/25110202312"},{"Key":"ClientUtcOffsetSeconds","Value":"7200"}],"IsBilateral":"false","IsCopilotMentioned":"false","MessageId":"1763541239599","MessageReactionType":"laugh","MessageVersion":"1763543330740","ParticipantInfo":{"HasForeignTenantUsers":"false","HasGuestUsers":"false","HasOtherGuestUsers":"false","HasUnauthenticatedUsers":"false","ParticipatingDomains":[],"ParticipatingSIPDomains":[],"ParticipatingTenantIds":["df991f47c4"]},"ResourceTenantId":"df915e91791f47c4","ChatName":"77","Subscription":"Audit.General"}},"location":"office365"}
filebeat test output
elasticsearch: https://10.26.12.28:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: 10.26.12.28
dial up... OK
TLS...
security: server's certificate chain verification is enabled
handshake... OK
TLS version: TLSv1.2
dial up... OK
talk to server... OK
version: 7.10.2
cat /var/log/filebeat/filebeat | grep -i -E "error|warn" no error
{
"cluster_name": "wazuh-cluster",
"status": "yellow",
"timed_out": false,
"number_of_nodes": 1,
"number_of_data_nodes": 1,
"discovered_master": true,
"discovered_cluster_manager": true,
"active_primary_shards": 46,
"active_shards": 46,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 3,
"delayed_unassigned_shards": 0,
"number_of_pending_tasks": 0,
"number_of_in_flight_fetch": 0,
"task_max_waiting_in_queue_millis": 0,
"active_shards_percent_as_number": 93.87755102040816
}
cat /var/log/wazuh-indexer/wazuh-cluster.log | grep -i -E "error|warn"
no error
Periodically I see one or two events appear on the dashboard, but this is rare, it feels like something is missing from the system.
Also i see
tail -f /var/ossec/logs/ossec.log
2025/11/19 11:51:50 wazuh-integratord: WARNING: Overlong JSON alert read from 'logs/alerts/alerts.json'
2025/11/19 11:52:15 wazuh-logcollector: WARNING: Target 'agent' message queue is full (1024). Log lines may be lost.
2025/11/19 11:53:29 rootcheck: INFO: Ending rootcheck scan.
2025/11/19 11:57:54 wazuh-integratord: WARNING: Overlong JSON alert read from 'logs/alerts/alerts.json'
2025/11/19 12:03:03 wazuh-modulesd:ms-graph: WARNING: Interval overtaken.
2025/11/19 12:03:03 wazuh-modulesd:ms-graph: INFO: Scanning tenant 'df91ddb0-c807-4b5e-89ac-5e91791f47c4'
2025/11/19 12:03:51 wazuh-integratord: WARNING: Overlong JSON alert read from 'logs/alerts/alerts.json'