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!

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...