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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...