Getting Data In

Extracting Fields using Regex

EHariharan
Explorer

Hi All,

TIME_PREFIX=
MAX_TIME_LOOKAHEAD=
LINE_BREAKER=

Below are the logs which need to be extracted. Kindly help!

LOGID USERTYPE OPERATORUSER OPERATORTYPE OPERATORNAME OPERATORTIME

6 ma*ge_an userClass deleteUser 2019-06-28 09:50:26
7 System administrator ma
ge_a***n userClass createUser 2019-06-28 09:50:3

Thanks in Advance!

Tags (1)
0 Karma

chinmoya
Communicator

it looks like all your headers are separated by a tab.
I would suggest you not use regex instead use a delimiter based approach with using tab as a delimiter.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...