Splunk Search

Format CVE using Regex

carldipace
New Member

I've ran a search and one of my columns in my table references CVE IDs. However, CVE IDs in that column are not in the correct CVE ID format (i.e. CVE-XXXX-XXX). My question is, is there a way to format this column using regex to put the CVE ID's in there correct format? I have provided a screen shot below. Any help would be greatly appreciated.

alt text

0 Karma
1 Solution

renjith_nair
Legend

@carldipace,

CVE-ID format is CVE-YEAR-Arbitrary Digits

So in your case

eval reference_cve="CVE-".reference_cve should work

---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

0 Karma

renjith_nair
Legend

@carldipace,

CVE-ID format is CVE-YEAR-Arbitrary Digits

So in your case

eval reference_cve="CVE-".reference_cve should work

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

carldipace
New Member

Thank you! That worked.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...