feat(addon): Extract all URL Categories to category as a multi-value field#204
feat(addon): Extract all URL Categories to category as a multi-value field#204as3923 wants to merge 3 commits into
Conversation
|
🎉 Thanks for opening this pull request! We really appreciate contributors like you! 🙌 |
Added `isnotnull(URLCategoryList)` check because some events only have URLCategory.
btorresgil
left a comment
There was a problem hiding this comment.
Thanks for opening this. How has it been tested?
I'm concerned that isnotnull will always return true because Splunk seems to enjoy populating null json values with a string containing the word "null" which would always be non-null.
I'm also not sure if a split is the right way because I thought CDL would produce a list which should be parsed by Splunk into multi-value field. Curious if CDL is offering a comma delineated string instead of a list.
Thanks again!
For some Cortex eventtypes `http_category` is not in the `URLCategoryList`, but for other eventtypes it is in the list. Updated the eval to check whether `http_category` is in the list, and to append it if it is not already in the list.
|
@btorresgil This was tested with Cortex data in an on-premise Splunk Enterprise environment. I'm not concerned about I used |
de4dfdc to
d7bd687
Compare
Description
Extract multi-value URL categories from logs that come from Cortex Data Lake. Should also resolve issues similar that mentioned in #147 for logs from Cortex.
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate)
Types of changes
Checklist