<?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 Re: How can i parse the value in this line in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-i-parse-the-value-in-this-line/m-p/493800#M99879</link>
    <description>&lt;P&gt;&lt;CODE&gt;| rex field=_raw "\"tag\":\s+[^:]+:(?&amp;lt;githash&amp;gt;[^/]+)/"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Use &lt;CODE&gt;rex&lt;/CODE&gt; to extract a new field using a regular expression. This regex looks for &lt;CODE&gt;"tag":&lt;/CODE&gt;, followed by some whitespace, followed by anything except a &lt;CODE&gt;:&lt;/CODE&gt;, then &lt;CODE&gt;:&lt;/CODE&gt;, then capture everything into a new field called "githash", up to the &lt;CODE&gt;/&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2019 05:36:26 GMT</pubDate>
    <dc:creator>sduff_splunk</dc:creator>
    <dc:date>2019-10-08T05:36:26Z</dc:date>
    <item>
      <title>How can i parse the value in this line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-i-parse-the-value-in-this-line/m-p/493799#M99878</link>
      <description>&lt;P&gt;I have the following line. I would like to parse the githash from it. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[08/Oct/2019:05:08:31 +0000]  200 \"GET / HTTP/1.1\" 1203 \"-\" ,"source":"stdout", "tag": test/test-ui:b1cd4er8590rj39d39309e9e9/test-ui/03e020671f70
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I run my splunk query, I want to display "b1cd4er8590rj39d39309e9e9". &lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 05:11:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-i-parse-the-value-in-this-line/m-p/493799#M99878</guid>
      <dc:creator>balash1979</dc:creator>
      <dc:date>2019-10-08T05:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can i parse the value in this line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-i-parse-the-value-in-this-line/m-p/493800#M99879</link>
      <description>&lt;P&gt;&lt;CODE&gt;| rex field=_raw "\"tag\":\s+[^:]+:(?&amp;lt;githash&amp;gt;[^/]+)/"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Use &lt;CODE&gt;rex&lt;/CODE&gt; to extract a new field using a regular expression. This regex looks for &lt;CODE&gt;"tag":&lt;/CODE&gt;, followed by some whitespace, followed by anything except a &lt;CODE&gt;:&lt;/CODE&gt;, then &lt;CODE&gt;:&lt;/CODE&gt;, then capture everything into a new field called "githash", up to the &lt;CODE&gt;/&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 05:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-i-parse-the-value-in-this-line/m-p/493800#M99879</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2019-10-08T05:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can i parse the value in this line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-i-parse-the-value-in-this-line/m-p/493801#M99880</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
try this regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\"tag\":\s+[^:]*:(?&amp;lt;githash&amp;gt;[^\/]*)\/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you can use in a field extractor or in a rex command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "\"tag\":\s+[^:]*:(?&amp;lt;githash&amp;gt;[^\/]*)\/"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can test it at &lt;A href="https://regex101.com/r/tCmHBh/1"&gt;https://regex101.com/r/tCmHBh/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 09:41:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-i-parse-the-value-in-this-line/m-p/493801#M99880</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-08T09:41:37Z</dc:date>
    </item>
  </channel>
</rss>

