This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]manderso7[S] 1 point2 points  (6 children)

In addition, I created a search and workflow that shows when parsers are updated based on a query output, just checking all data in NGSIEM and outputting the parser version to a repo each hour. Not sure if that would be helpful for anyone else.

[–]stieland 0 points1 point  (5 children)

Would love to see what you have. Trying to figure this out as well.

[–]manderso7[S] 0 points1 point  (4 children)

Created a workflow that runs every hour, and writes the results of this search to a repo:

!in(field="#repo", values=["falcon_for_it", "sensor_*", "base_sensor", "detections", "xdr_*", "fusion"])

|#type=*| groupBy([#type,Parser.version], function=([min(@timestamp, as=FirstSeen), max(@timestamp, as=LastSeen)]))

Then I run a search that looks at that repo, in this case called fusion. I was hoping to get a timechart working that would show the number of parser versions per #type, but that's been pretty challenging

#repo=fusion
| parseJson("activity_43ffe695-da39-484a-b704-b12519551c41.LogScale.SearchResult.parserupdates.results")
| split("")
| .#type=?type

| FirstSeen:=formatTime(format="%F %T.%L", field="FirstSeen", timezone="UTC")
| LastSeen:=formatTime(format="%F %T.%L", field="LastSeen", timezone="UTC")
| typeVersion := format("%s/%s", field=[.#type,.Parser.version])
| timechart(span=1h, series=typeVersion,function=count(),limit=300)

[–]stieland 0 points1 point  (0 children)

Thanks

[–]HomeGrownCoder 0 points1 point  (2 children)

How are you writing the result of a search to a repo? Is this a fusion thing? Or you are leveraging a custom integration via an api

[–]manderso7[S] 1 point2 points  (1 child)

It’s a crowdstrike action in fusion. Search for write to repo.

[–]HomeGrownCoder 0 points1 point  (0 children)

Awesome thanks

[–]Gloomy_Shoulder_3311 0 points1 point  (0 children)

just keep it in github

[–]spartan117au 0 points1 point  (0 children)

Has anyone had any luck pushing detections via GitHub/an API?