<?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 How do I use rex command here? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-command-here/m-p/445320#M126319</link>
    <description>&lt;P&gt;sample event:&lt;/P&gt;

&lt;P&gt;fullFormattedMessage:    Device naa.60000970000297500017533030313231 performance has improved. I/O latency reduced from 3746 microseconds to &lt;STRONG&gt;1859&lt;/STRONG&gt; microseconds. &lt;/P&gt;

&lt;P&gt;Required field is in bold.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 11:48:58 GMT</pubDate>
    <dc:creator>harshal94</dc:creator>
    <dc:date>2018-06-13T11:48:58Z</dc:date>
    <item>
      <title>How do I use rex command here?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-command-here/m-p/445320#M126319</link>
      <description>&lt;P&gt;sample event:&lt;/P&gt;

&lt;P&gt;fullFormattedMessage:    Device naa.60000970000297500017533030313231 performance has improved. I/O latency reduced from 3746 microseconds to &lt;STRONG&gt;1859&lt;/STRONG&gt; microseconds. &lt;/P&gt;

&lt;P&gt;Required field is in bold.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 11:48:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-command-here/m-p/445320#M126319</guid>
      <dc:creator>harshal94</dc:creator>
      <dc:date>2018-06-13T11:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use rex command here?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-command-here/m-p/445321#M126320</link>
      <description>&lt;P&gt;Hi @harshal94 ,&lt;/P&gt;

&lt;P&gt;If the format of the string going to be same, then you can use split also (much easier) &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats count|eval xyz="fullFormattedMessage: Device naa.60000970000297500017533030313231 performance has improved. I/O latency reduced from 3746 microseconds to 1859 microseconds."|eval splitted=split(xyz," ")|eval micsecs=mvindex(splitted,mvcount(splitted)-2)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 11:58:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-command-here/m-p/445321#M126320</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-06-13T11:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use rex command here?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-command-here/m-p/445322#M126321</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|  makeresults |  eval str="Device naa.60000970000297500017533030313231 performance has improved. I/O latency reduced from 3746 microseconds to 1859 microseconds"
|  rex field=str "microseconds to (?&amp;lt;value&amp;gt;\d+) microseconds"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jun 2018 12:00:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-command-here/m-p/445322#M126321</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2018-06-13T12:00:48Z</dc:date>
    </item>
  </channel>
</rss>

