<?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 extract a word from raw data in Splunk using rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-word-from-raw-data-in-Splunk-using-rex/m-p/463914#M130779</link>
    <description>&lt;P&gt;ok Thank you so much. Will check on it:)&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2019 04:56:05 GMT</pubDate>
    <dc:creator>kavyamohan</dc:creator>
    <dc:date>2019-10-22T04:56:05Z</dc:date>
    <item>
      <title>How to extract a word from raw data in Splunk using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-word-from-raw-data-in-Splunk-using-rex/m-p/463910#M130775</link>
      <description>&lt;P&gt;SVSCPLEX,S0W1,S0W1.DAL-EBIS.IHOST.COM,SYSLOG,zOS-SYSLOG-Console,SYSLOG,-0400,NE,001C,19283 01.21.46.880 -0500,S0W1    ,JOB03487,        ,40000000000000000000000000000000,00000090,TESCREAT,00," IEF450I TESCREAT STEP010 - ABEND=S222 U0000 REASON=00000000"\n. I want to extract this TESCREAT from the above given. I was able to write rex, but iam getting error while using the below rex field. Can you help me where I am missing.&lt;/P&gt;

&lt;P&gt;| rex field=_raw ^[^"\n]*"\s+\w+\d+\w+\s+(?P\w+)&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 09:25:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-word-from-raw-data-in-Splunk-using-rex/m-p/463910#M130775</guid>
      <dc:creator>kavyamohan</dc:creator>
      <dc:date>2019-10-21T09:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a word from raw data in Splunk using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-word-from-raw-data-in-Splunk-using-rex/m-p/463911#M130776</link>
      <description>&lt;P&gt;Hi  kavyamohan,&lt;BR /&gt;
try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "([^,]*,){15}(?&amp;lt;my_field&amp;gt;[^,]*),"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you can test it at &lt;A href="https://regex101.com/r/Dul1S5/1"&gt;https://regex101.com/r/Dul1S5/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-word-from-raw-data-in-Splunk-using-rex/m-p/463911#M130776</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-21T10:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a word from raw data in Splunk using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-word-from-raw-data-in-Splunk-using-rex/m-p/463912#M130777</link>
      <description>&lt;P&gt;Thank you so much. It worked, where can I practice and learn writing rex?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:58:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-word-from-raw-data-in-Splunk-using-rex/m-p/463912#M130777</guid>
      <dc:creator>kavyamohan</dc:creator>
      <dc:date>2019-10-21T10:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a word from raw data in Splunk using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-word-from-raw-data-in-Splunk-using-rex/m-p/463913#M130778</link>
      <description>&lt;P&gt;Hi kavyamohan,&lt;BR /&gt;
you can use regex101 to test your regexes and this is the most important site to use!&lt;BR /&gt;
.&lt;BR /&gt;
About a tutorial, you can search on Internet using Google, anyway I used this &lt;A href="https://www.regular-expressions.info/"&gt;https://www.regular-expressions.info/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you want a quick reference guide (very quick for regexes but there are many information also on Splunk), you can use &lt;A href="https://www.splunk.com/pdfs/solution-guides/splunk-quick-reference-guide.pdf"&gt;https://www.splunk.com/pdfs/solution-guides/splunk-quick-reference-guide.pdf&lt;/A&gt; .&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:46:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-word-from-raw-data-in-Splunk-using-rex/m-p/463913#M130778</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-21T12:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a word from raw data in Splunk using rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-word-from-raw-data-in-Splunk-using-rex/m-p/463914#M130779</link>
      <description>&lt;P&gt;ok Thank you so much. Will check on it:)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 04:56:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-word-from-raw-data-in-Splunk-using-rex/m-p/463914#M130779</guid>
      <dc:creator>kavyamohan</dc:creator>
      <dc:date>2019-10-22T04:56:05Z</dc:date>
    </item>
  </channel>
</rss>

