This repository has been archived by the owner on Mar 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for converting timestamps (#17)
All 3 targets support parsing `UNIX` and `UNIX_MS`. ecs-mapper lets users specify any kind of shorthand or date format as well, but does not validate them. They are passed as is to the target pipelines. This is not a compatibility layer. However this can be useful once the user already knows which kind of pipeline they want to use, and know exactly which time format they need in the resulting pipeline.
- Loading branch information
Tony Meehan
authored
Apr 27, 2020
1 parent
813c8ae
commit 9ffcfae
Showing
16 changed files
with
494 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
source_field,copy_action,format_action,destination_field,Notes | ||
srcip,,,source.address,Copying srcip to source.address | ||
srcip,,,source.ip,Copying srcip a second time to source.ip as well | ||
new_event.srcip,,,source.ip,This new event type could also populate source.ip | ||
srcport,rename,to_integer,source.port, | ||
destip,,,destination.address, | ||
destport,,to_integer,destination.port, | ||
ts,copy,,timestamp, | ||
action,rename,lowercase,event.action, | ||
duration,rename,to_float,event.duration, | ||
user_agent,rename,,user_agent.original, | ||
log_level,rename,uppercase,log.level, | ||
eventid,rename,to_string,event.id,IDs should be strings! | ||
successful,,to_boolean,, | ||
hostip,rename,to_array,host.ip, | ||
process.args,,to_array,, | ||
source_field,copy_action,format_action,timestamp_format,destination_field,Notes | ||
srcip,,,,source.address,Copying srcip to source.address | ||
srcip,,,,source.ip,Copying srcip a second time to source.ip as well | ||
new_event.srcip,,,,source.ip,This new event type could also populate source.ip | ||
some_timestamp_field,,parse_timestamp,,@timestamp,Convert this timestamp to UNIX_MS format | ||
some_other_timestamp,,,,@timestamp,Convert this timestamp to default UNIX_MS | ||
some_new_timestamp,,parse_timestamp,UNIX,destination_timestamp,Convert this timestamp to UNIX format | ||
srcport,rename,to_integer,,source.port, | ||
destip,,,,destination.address, | ||
destport,,to_integer,,destination.port, | ||
ts,copy,,,timestamp, | ||
action,rename,lowercase,,event.action, | ||
duration,rename,to_float,,event.duration, | ||
user_agent,rename,,,user_agent.original, | ||
log_level,rename,uppercase,,log.level, | ||
eventid,rename,to_string,,event.id,IDs should be strings! | ||
successful,,to_boolean,,,Format source field to boolean type | ||
hostip,rename,to_array,,host.ip, | ||
process.args,,to_array,,,Format source field to an array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.