Splunk Search

How to make a field as index time field extraction?

deepthi5
Path Finder

I have a log with events as below

Mar 18 10:48:31 XXXXXXXXXXXXXXX 1,2019/03/18 10:48:31,012501002228,\,url-filtering,0,2019/03/18 10:48:31,,url-cloud-connection-failure,,0,0,general,medium,"Cloud is not ready,

Where XXXXXXXXX is ectract as device hostname i.e., dvc_host

I want to make this field as a index time field extraction

I have field extracted in props and transforms and then defined dvc_host in fields.conf but still could not find the field while using tstats

0 Karma

woodcock
Esteemed Legend

To be an index-time field, you cannot use EXTRACT- nor REPORT-, you must use TRANSFORMS- in props.conf and then create a transform in transforms.conf that matches and does your field extraction. This must then be pushed to the first full-instance of splunk that handles your events (HF or Indexer tier). Show us what is in your props.conf and transforms.conf.

0 Karma

deepthi5
Path Finder

Transforms.conf ( Where dvc_host is defined as field here )

[panfw_extract_traffic]
DELIMS = ","
FIELDS = "future_use1","receive_time","serial_number","type","log_subtype","future_use2","generated_time","src_ip","dest_ip","src_translated_ip","dest_translated_ip","rule","src_user","dest_user","app","virtual_system","src_zone","dest_zone","src_interface","dest_interface","log_forwarding_profile","future_use3","session_id","repeat_count","src_port","dest_port","src_translated_port","dest_translated_port","flags","protocol","action","bytes","bytes_out","bytes_in","packets","start_time","duration","category","future_use4","sequence_number","action_flags","src_location","dest_location","future_use5","packets_out","packets_in","session_end_reason","devicegroup_level1","devicegroup_level2","devicegroup_level3","devicegroup_level4","vsys_name","dvc_host","action_source"

Props.conf

[pan:traffic]
REPORT-panfw_extract_traffic = panfw_extract_traffic

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

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...