<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic extract a string from a splunk event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/extract-a-string-from-a-splunk-event/m-p/316465#M59159</link>
    <description>&lt;P&gt;Hi , &lt;/P&gt;

&lt;P&gt;Can anyone please give me the props for removing hostname= and path= strings from the below event&lt;/P&gt;

&lt;P&gt;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&lt;BR /&gt;
java.lang.IllegalStateException: no valid keystore&lt;BR /&gt;
 at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(SourceFile:48)&lt;BR /&gt;
 at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SourceFile:1030)&lt;BR /&gt;
 at org.eclipse.jetty.util.ssl.SslContextFactory.load(SourceFile:255)&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2018 11:21:22 GMT</pubDate>
    <dc:creator>Mohsin123</dc:creator>
    <dc:date>2018-01-16T11:21:22Z</dc:date>
    <item>
      <title>extract a string from a splunk event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/extract-a-string-from-a-splunk-event/m-p/316465#M59159</link>
      <description>&lt;P&gt;Hi , &lt;/P&gt;

&lt;P&gt;Can anyone please give me the props for removing hostname= and path= strings from the below event&lt;/P&gt;

&lt;P&gt;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&lt;BR /&gt;
java.lang.IllegalStateException: no valid keystore&lt;BR /&gt;
 at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(SourceFile:48)&lt;BR /&gt;
 at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SourceFile:1030)&lt;BR /&gt;
 at org.eclipse.jetty.util.ssl.SslContextFactory.load(SourceFile:255)&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 11:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/extract-a-string-from-a-splunk-event/m-p/316465#M59159</guid>
      <dc:creator>Mohsin123</dc:creator>
      <dc:date>2018-01-16T11:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: extract a string from a splunk event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/extract-a-string-from-a-splunk-event/m-p/316466#M59160</link>
      <description>&lt;P&gt;hey you can try this run anywhere search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| 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-(?&amp;lt;hostname&amp;gt;[^\s]+)\spath=(?&amp;lt;path&amp;gt;[^\s]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your environment you should try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your_base_search&amp;gt; | rex field=_raw "^hostname=ip-(?&amp;lt;hostname&amp;gt;[^\s]+)\spath=(?&amp;lt;path&amp;gt;[^\s]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps !&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 12:59:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/extract-a-string-from-a-splunk-event/m-p/316466#M59160</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-16T12:59:40Z</dc:date>
    </item>
  </channel>
</rss>

