Splunk Enterprise Security

How do I write the regex to find all SCCM logs that contain dest_name="CN ?

infosecdb
Engager

Hi Everyone,

I am trying to concoct a regular expression in the Splunk App for Enterprise Security to find all SCCM logs that contain dest_name="CN. The results of the search will be sent to an alternate SIEM solution.

  1. The search criteria will begin with dest_name="CN
  2. The characters after CN can be any character, any case, and numeral. For example: dest_name="CNWSNCHHHD001" or dest_name="CNWSEC91CD199".
  3. The remaining characters can be any character or number
  4. Log example:

    "09-01-2015 11:18:59" timestamp=1441120739267, vendor_product="SystemCenterEndpointProtection", type="SecurityIncident", resourceid=67132131, dest_name="CNWSNCHHHD001", dest_nt_domain="REDACTED", detectiontime=1441120739267, actiontime=1441120750000, product_version="4.5.0216.0", detectionid="{REDACTED}", detection_source="realtime", user="REDACTED", target_process="REDACTED", file_path="REDACTED", signature="Virus:DOS/JackTheRipper", severity="Severe", category="Virus", action_type="quarantine", action="deferred", action_result="false", action_error_code=-2147024846, pending_action="noaction"
    (Also, sourcetype should be from sccm:malware)

Any assistance to what I may be doing wrong would be greatly appreciated.

Thanks,
Al Wever

0 Karma

PGrantham
Path Finder

In an adhoc search you could just run:

index=<your index> sourcetype=sccm:malware dest_name="CN*"

If you're trying to extract the characters following the CN you could run:

 index=<your index> sourcetype=sccm:malware dest_name="CN*" | rex field=dest_name "CN(?<dest_name_uid>[^\"]+)"  | table dest_name_uid
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...