Splunk how to extract a field from raw data

This is simple steps to extract a duplicated field from raw data.

 

 1. As you can see below capture, there are same data on existing field and raw data. Let’s make a separated field to have Splunk knows it is different value. 

 

Splunk_extract_field_1.png

 

 2. Click " Extract Fields"

Splunk_extract_field_2.png

 

3. Copy a exact part of field. In this case, it would be "src="222.68.x.x:0"

Splunk_extract_field_3.png

 

 4. Paste of the wish data on "Example value for a field". It will generate a general expression value for you. Click "Generate"

Splunk_extract_field_4.png

 

 5. Check data field on yellow backgroup color to see what you are exactly extracting.

Splunk_extract_field_5.png

 

 6. Regular Expression pattern has been generated

Splunk_extract_field_6.png

 

 7. Save it as "src_ip"

Splunk_extract_field_7.png

  

 8. "Close"

Splunk_extract_field_8.png

 

 9. Now, you see a new "src_ip" filed on interesting fields section.

Splunk_extract_field_9.png

 

 

 

Leave a Reply