I have a couple of basic questions regarding mapping firewall log fields to Elastic Common Schema, in the way compatible with the intentions of ECS designers.
Firewall is deployed on a server determined by the 'origin' field. The firewall exports logs to a log server, which is a different server than the firewall server. The event contains several fields describing the event information, and one field called 'Action', describing the outcome.
An example of and event in the firewall log is below - for simplicity I omit the fields not relevant to this question (i.e. source, destination, etc. are omitted):
<134>1 2019-08-23T08:52:01Z fwlog007 CheckPoint 15774 - [action:'Accept'; origin:'87.28.122.231'; policy_name=vfw-modq-rule; rule:'92'; rule_uid:'{DF773648-A85C-B9D5-366F-23193C818B20}']
Explanation of the fields is below:
- origin is an ip address of the firewall server
- fwlog007 is the hostname of the log server (i.e. where the firewall writes the log), it is different server than origin.
- action is the action of matched rule
- policy_name is the name of the last policy fetched
- rule is the matched rule number
- rule_uid is access policy rule ID which the connection was matched on
Taking literally the ECS field reference, the mapping could look like this - but does not look right.
- origin: => in ECS would be observer.ip
- fwlog007 => Big question in ECS. observer.hostname would be incorrect, because it is not the same server as firewall (origin). However, the firewall log server conceptually belongs to the observer system, so the host.hostname, client.hostname, server.hostname do not sound correct either.
- action => in ECS would be event.outcome, i.e. 'Accept' (in ECS describes an outcome of the action)
- policy_name, rule and rule_uid: => in ECS would all be mapped to event.action (Action describes the information in the event)
In summary, here are my questions and issues with the mapping above:
- the firewall server and the log server conceptually both belong to ECS observer system, but observer can have only one ip and one hostname in ECS.
- there are three fields describing the applied policy and rules (i.e. the information in the event), but ECS allows only one event.action
- the field called 'action' in the firewall log is not mapped to event.action but to event.outcome in ECS, which could lead to confusion.
Any guidelines how to make the mapping consistent with the ECS intentions would be very helpful.
Thanks,
Pavel