From cde8d971cdc3bb70dbc161d08bb77b384dcefb23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Thu, 19 Jan 2023 12:12:10 +0100 Subject: [PATCH 1/2] Update Apache HTTP Server access log example mapping --- specification/logs/data-model.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/logs/data-model.md b/specification/logs/data-model.md index 8d7221b094a..a1a193bacb8 100644 --- a/specification/logs/data-model.md +++ b/specification/logs/data-model.md @@ -549,7 +549,7 @@ Can include data that describes particular occurrence of the event. Can be meta-information, e.g. quality of timestamp value. SDID origin.swVersion map to Resource["service.version"] -SDID origin.ip map to attribute[net.host.ip"] +SDID origin.ip map to attribute["net.sock.host.addr"] Rest of SDIDs -> Attributes["syslog.*"] @@ -846,19 +846,19 @@ When mapping from the unified model to HEC, we apply this additional mapping: %a string - Client IP - Attributes["net.peer.ip"] + Client address + Attributes["net.sock.peer.addr"] %A string - Server IP - Attributes["net.host.ip"] + Server address + Attributes["net.sock.host.addr"] %h string - Remote hostname. + Client hostname. Attributes["net.peer.name"] @@ -918,7 +918,7 @@ When mapping from the unified model to HEC, we apply this additional mapping: sourceIPAddress string The IP address that the request was made from. - Resource["net.peer.ip"] or Resource["net.host.ip"]? TBD + Resource["net.peer.ip"] or Resource["net.sock.host.addr"]? TBD errorCode @@ -1036,7 +1036,7 @@ All other fields | | source.ip, client.ip string The IP address that the request was made from. - Attributes["net.peer.ip"] or Attributes["net.host.ip"] + Attributes["net.peer.ip"] or Attributes["net.sock.host.addr"] cloud.account.id From b4664b6394a931fc2f5adbd096f979a5306e4e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Wed, 1 Feb 2023 19:02:38 +0100 Subject: [PATCH 2/2] Apply suggestions from code review --- specification/logs/data-model.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/logs/data-model.md b/specification/logs/data-model.md index a1a193bacb8..58faec0e78c 100644 --- a/specification/logs/data-model.md +++ b/specification/logs/data-model.md @@ -918,7 +918,7 @@ When mapping from the unified model to HEC, we apply this additional mapping: sourceIPAddress string The IP address that the request was made from. - Resource["net.peer.ip"] or Resource["net.sock.host.addr"]? TBD + Attributes["net.sock.peer.addr"] or Attributes["net.sock.host.addr"] errorCode @@ -1036,7 +1036,7 @@ All other fields | | source.ip, client.ip string The IP address that the request was made from. - Attributes["net.peer.ip"] or Attributes["net.sock.host.addr"] + Attributes["net.sock.peer.addr"] or Attributes["net.sock.host.addr"] cloud.account.id