<?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 Any Values With a Decimal in my Rex String in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Any-Values-With-a-Decimal-in-my-Rex-String/m-p/555522#M157699</link>
    <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "Error\sat\sPosition\s(?&amp;lt;x_coord&amp;gt;[^\s]+)\s(?&amp;lt;y_coord&amp;gt;[^\s]+)"&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 11 Jun 2021 21:48:19 GMT</pubDate>
    <dc:creator>rupkumar4sec</dc:creator>
    <dc:date>2021-06-11T21:48:19Z</dc:date>
    <item>
      <title>How to Extract Any Values With a Decimal in my Rex String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Any-Values-With-a-Decimal-in-my-Rex-String/m-p/555521#M157698</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This may be an easy one, but I've been struggling with finding an answer for it.&lt;/P&gt;&lt;P&gt;I have events that look like this:&lt;/P&gt;&lt;P&gt;2021-06-11 17:22:13 Error at Position 1.1232 45.3285&lt;BR /&gt;2021-06-11 17:20:31 Error at Position -6.6351 32.3882&lt;BR /&gt;2021-06-11 17:19:14 Error at Position -21.1287 4.9063&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first number is an x coordinate and the second is a y coordinate. I am trying to extract these values with a regex string that look like this:&lt;/P&gt;&lt;P&gt;| rex field=_raw "Error\sat\sPosition\s(?&amp;lt;x_coord&amp;gt;.\d+.\d+)\s(?&amp;lt;y_coord&amp;gt;.\d+.\d+)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this won't allow me to get values with just a single number followed by a decimal (ie. 1.1232). If I get rid of the dot at the beginning of each then it won't get any of the negative signs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I rewrite this rex string to get all of the values?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 21:37:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Any-Values-With-a-Decimal-in-my-Rex-String/m-p/555521#M157698</guid>
      <dc:creator>Traer001</dc:creator>
      <dc:date>2021-06-11T21:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Extract Any Values With a Decimal in my Rex String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Any-Values-With-a-Decimal-in-my-Rex-String/m-p/555522#M157699</link>
      <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw "Error\sat\sPosition\s(?&amp;lt;x_coord&amp;gt;[^\s]+)\s(?&amp;lt;y_coord&amp;gt;[^\s]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Jun 2021 21:48:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Any-Values-With-a-Decimal-in-my-Rex-String/m-p/555522#M157699</guid>
      <dc:creator>rupkumar4sec</dc:creator>
      <dc:date>2021-06-11T21:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Extract Any Values With a Decimal in my Rex String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Any-Values-With-a-Decimal-in-my-Rex-String/m-p/555524#M157700</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex field=_raw "Error\sat\sPosition\s(?&amp;lt;x_coord&amp;gt;[\d\.\-]+)\s(?&amp;lt;y_coord&amp;gt;[\d\.\-]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Jun 2021 22:18:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Any-Values-With-a-Decimal-in-my-Rex-String/m-p/555524#M157700</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-11T22:18:38Z</dc:date>
    </item>
  </channel>
</rss>

