added support for JSON format, fixed typos, took care of a couple issues #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We recently moved from using syslog to the [JSON format events (https://help.deepsecurity.trendmicro.com/aws/event-sns-json.html) so we went ahead and updated the TA internally to add support to the new format, and thought we could contribute the updates back to the source repo. :)
I did the best I could to map fields to the CIM data models, however for two of the event types (App Control and Web Reputation) I relied on documentation to do the mapping since we don't have those modules and therefore I didn't have events in Splunk to look at.
One thing is we went with indexed_extractions = json as we've had success with that setting in json events (and it is what the AWS TA uses, so we decided to go with that).
With regards to the dashboards, I simplified some things a bit, mainly using the CIM fields as much as possible to allow them to be agnostic to the JSON or syslog sourcetypes. A possible improvement is to use eventtypes instead of sourcetypes to make the search string shorter, but I decided to leave it alone for now.
I went ahead and added the fix for issue #8 and updated the deepsecurity-cefcustom transform.
Please let me know if you have any questions!
Thanks,
Pedro