Getting Data In

Script

uagraw01
Builder

Hello Guys,

I want one as shell script in which i want to extract only sourcetype name and TIME_FORMAT attribute from the props.conf. I tried to extract but some how it is not exactly extracting the results.

 

ls l grep 'TIME_FORM*' props.conf | awk '{print $0}' | sed 's/E_FORMAT=/ /

I tried for timeformat but i want sourcetype ne and its respective timeformat.Can anyone suggest this.

 

Labels (1)
Tags (1)
0 Karma

uagraw01
Builder

ls l grep 'TIME_FORM*' props.conf | awk '{print $0}' | sed 's/TIME_FORMAT=/ /g'

 

 

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

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 ...