Getting Data In

extract a string from a splunk event

Mohsin123
Path Finder

Hi ,

Can anyone please give me the props for removing hostname= and path= strings from the below event

hostname=ip-10-13-0-248 path=/var/log/armorvox/2018/01/armorvox.2018-01-16.log 2018-01-16 11:07:20.507 main WARN o.e.j.u.component.AbstractLifeCycle: FAILED org.eclipse.jetty.server.Server@96def03: java.lang.IllegalStateException: no valid keystore
java.lang.IllegalStateException: no valid keystore
at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(SourceFile:48)
at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SourceFile:1030)
at org.eclipse.jetty.util.ssl.SslContextFactory.load(SourceFile:255)

Tags (1)
0 Karma

mayurr98
Super Champion

hey you can try this run anywhere search

| makeresults | eval _raw="hostname=ip-10-13-0-248 path=/var/log/armorvox/2018/01/armorvox.2018-01-16.log 2018-01-16 11:07:20.507 main WARN o.e.j.u.component.AbstractLifeCycle: FAILED org.eclipse.jetty.server.Server@96def03: java.lang.IllegalStateException: no valid keystore
java.lang.IllegalStateException: no valid keystore
at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(SourceFile:48)
at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SourceFile:1030)
at org.eclipse.jetty.util.ssl.SslContextFactory.load(SourceFile:255)" | rex field=_raw "^hostname=ip-(?<hostname>[^\s]+)\spath=(?<path>[^\s]+)"

In your environment you should try

<your_base_search> | rex field=_raw "^hostname=ip-(?<hostname>[^\s]+)\spath=(?<path>[^\s]+)"

let me know if this helps !

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

Wondering How to Build Resiliency in the Cloud?

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

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...