<?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 to fetch the values from log using regular expression? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404483#M116991</link>
    <description>&lt;P&gt;This worked thanks&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2019 22:44:24 GMT</pubDate>
    <dc:creator>aqaadi</dc:creator>
    <dc:date>2019-07-24T22:44:24Z</dc:date>
    <item>
      <title>How to fetch the values from log using regular expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404478#M116986</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;Need your help on below search:&lt;/P&gt;

&lt;P&gt;I'm spitting something like this in the log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;My Test Data|My Test ID|My Case Status|My verification code|My Comments on case

The log has the data similar to above format delimited by pipe "|"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have around 8 fields in this way and I want to extract them in a table format and send the output to a service.&lt;/P&gt;

&lt;P&gt;Can you help me achieve it?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 13:38:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404478#M116986</guid>
      <dc:creator>aqaadi</dc:creator>
      <dc:date>2019-07-23T13:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch the values from log using regular expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404479#M116987</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval test="aaa|bbb|ccc|ddd|eee" 
| eval result=split(test,"|") 
| eval My_Test_Data=mvindex(result,0),My_Test_ID=mvindex(result,1),My_Case_Status=mvindex(result,2),My_verification_code=mvindex(result,3),My_Comments_on_case=mvindex(result,4) 
| table My_Test_Data My_Test_ID My_Case_Status My_verification_code My_Comments_on_case
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jul 2019 14:48:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404479#M116987</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-07-23T14:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch the values from log using regular expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404480#M116988</link>
      <description>&lt;P&gt;thanks let me try it.&lt;BR /&gt;
How do i passs the log snippet at runtime to test variable?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 16:12:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404480#M116988</guid>
      <dc:creator>aqaadi</dc:creator>
      <dc:date>2019-07-23T16:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch the values from log using regular expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404481#M116989</link>
      <description>&lt;P&gt;what should be the value of makeresults here ? &lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 19:00:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404481#M116989</guid>
      <dc:creator>aqaadi</dc:creator>
      <dc:date>2019-07-23T19:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch the values from log using regular expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404482#M116990</link>
      <description>&lt;P&gt;I tried the regex expression &lt;STRONG&gt;regex _raw=(ML\D{17})|(\D{3}\d{6}-\d{6})&lt;/STRONG&gt; and it worked. However i see entire log snippet is being returned instead of just the data present in regex expression.&lt;/P&gt;

&lt;P&gt;Any idea how to achieve this?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 19:46:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404482#M116990</guid>
      <dc:creator>aqaadi</dc:creator>
      <dc:date>2019-07-23T19:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch the values from log using regular expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404483#M116991</link>
      <description>&lt;P&gt;This worked thanks&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 22:44:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-the-values-from-log-using-regular-expression/m-p/404483#M116991</guid>
      <dc:creator>aqaadi</dc:creator>
      <dc:date>2019-07-24T22:44:24Z</dc:date>
    </item>
  </channel>
</rss>

