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

Happy Splunking!

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

Happy Splunking!
0 Karma

carldipace
New Member

Thank you! That worked.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...