-
Notifications
You must be signed in to change notification settings - Fork 31
ADDON-77801 Added support for ingesting json event using conte… #376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ class TestAttackData(BaseModel): | |
sourcetype: str = Field(...) | ||
custom_index: str | None = None | ||
host: str | None = None | ||
endpoint: str | None = None | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am wondering if it makes sense to add param, so that it would need to be set externally. It is doable for sure, on the other hand maybe it is generic enough for contentctl to spot that event format is hec format and decide as @spanchal-crest was proposing initally? Mean there is very specific json format, requiring "event" field and some others: https://docs.splunk.com/Documentation/Splunk/latest/Data/FormateventsforHTTPEventCollector On the other hand if assuming that having event and not having other fields than listed on above page seems to risky we can stick to the entry here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not exactly sure that I am following your suggestion. Could you provide some pseudocode, by any chance?
But must actually be converted to the following format before it is replayed:
In line with the requirements for the HEC JSON endpoint? Secondly, instead of the typing
or, even better endpoint: ReplayEndpoint = ReplayEndpoint.HEC
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do if else above with this, not override later?
Is there any test where we can test this behavior?