Splunk Search

How to edit props.conf and transforms.conf to extract fields and values that begin with "dv_"?

Path Finder

I need a sample code for field extraction during index time in props.conf and transforms.conf for the below use case.
i need to extract the fields and values for the field which starts with dv_. please help me with this

 endpoint="https://xyz.com/",dv_activity_due="UNKNOWN",calendar_stc="1231961",approval="not requested",dv_urgency="4 - Low",u_department="",dv_u_category="None",opened_by="frsjytyghngfchyghgmhhmhmhj",dv_u_caused_by="None",dv_u_software_model="",closed_at="2016-11-09 21:24:09",activity_due="",dv_number="INC123456",urgency="7",dv_sys_created_on="2016-10-26 10:11:28",service_offering="",dv_service_offering="",dv_upon_reject="Cancel all future Tasks",parent="",work_notes="",parent_incident="",u_territory="",dv_u_area="None",u_loc_code="",dv_sys_tags="",dv_follow_up="",dv_u_node="",u_caller_phone="(000) 000-0000",dv_cmdb_ci="",dv_u_vendor="abc",work_notes_list="",priority="5",upon_approval="proceed",dv_notify="Do Not Notify",comments="",dv_approval="Not Yet Requested",dv_watch_list="st-abcd0509.user@company.com",dv_u_loc_code="",dv_business_stc="303,849",sys_created_by="eci_mtsa",reopen_count="0",dv_sys_updated_on="2016-11-09 15:24:09",dv_due_date="",dv_expected_start="",dv_sys_domain="global",correlation_id="L17SRR",impact="7",dv_time_worked="10 Minutes",dv_opened_by="sSSA Integration",u_caused_by="",u_ess_visibility="true",approval_set="",contract="",watch_list="st-user@company.com",additional_assignee_list="",dv_work_notes="2016-11-09 12:12:25 - MTSA Integration (Work notes)
0 Karma
1 Solution

Legend

If these fields are not extracted by default, try this

props
[SOME STANZA]
REPORT-extract_dv_fields = extract_dv_fields

transforms
[extract_dv_fields]
REGEX = (dv_\w+)="([^"]+)
FORMAT = $1::$2

View solution in original post

0 Karma

Legend

If these fields are not extracted by default, try this

props
[SOME STANZA]
REPORT-extract_dv_fields = extract_dv_fields

transforms
[extract_dv_fields]
REGEX = (dv_\w+)="([^"]+)
FORMAT = $1::$2

View solution in original post

0 Karma