<?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 No regex could be learned. Try providing different examples or restriction. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21834#M3644</link>
    <description>&lt;P&gt;Hi everyone, I'm quite new to splunk. &lt;BR /&gt;
I encounter this error message "No regex could be learned. Try providing different examples or restriction." while I was trying to extract longitude value using the Interactive field extractor. But I was able to extract Latitude value and this is the regex for the Latitude value that display in the props.conf file "&lt;B&gt;EXTRACT-Latitude = (?i).Double"&amp;gt;(?P&lt;LATITUDE&gt;[^&amp;lt;]+)&lt;/LATITUDE&gt;&lt;/B&gt;". Please help me. Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2013 03:47:13 GMT</pubDate>
    <dc:creator>hikari992</dc:creator>
    <dc:date>2013-05-02T03:47:13Z</dc:date>
    <item>
      <title>No regex could be learned. Try providing different examples or restriction.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21834#M3644</link>
      <description>&lt;P&gt;Hi everyone, I'm quite new to splunk. &lt;BR /&gt;
I encounter this error message "No regex could be learned. Try providing different examples or restriction." while I was trying to extract longitude value using the Interactive field extractor. But I was able to extract Latitude value and this is the regex for the Latitude value that display in the props.conf file "&lt;B&gt;EXTRACT-Latitude = (?i).Double"&amp;gt;(?P&lt;LATITUDE&gt;[^&amp;lt;]+)&lt;/LATITUDE&gt;&lt;/B&gt;". Please help me. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 03:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21834#M3644</guid>
      <dc:creator>hikari992</dc:creator>
      <dc:date>2013-05-02T03:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: No regex could be learned. Try providing different examples or restriction.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21835#M3645</link>
      <description>&lt;P&gt;Log samples please? Hard to tell you what your regular expression should look like otherwise.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 06:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21835#M3645</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-02T06:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: No regex could be learned. Try providing different examples or restriction.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21836#M3646</link>
      <description>&lt;P&gt;Hi, it's a xml data.&lt;BR /&gt;
&lt;LATITUDE type="Edm.Double"&gt;1.4004771683629058&lt;A href="https://answers.splunk.comd:Latitude"&gt;/d:Latitude&lt;/A&gt;&lt;BR /&gt;
&lt;LONGITUDE type="Edm.Double"&gt;103.8579338813216&lt;A href="https://answers.splunk.comd:Longitude"&gt;/d:Longitude&lt;/A&gt;&lt;/LONGITUDE&gt;&lt;/LATITUDE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 07:12:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21836#M3646</guid>
      <dc:creator>hikari992</dc:creator>
      <dc:date>2013-05-02T07:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: No regex could be learned. Try providing different examples or restriction.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21837#M3647</link>
      <description>&lt;P&gt;Just use the Latitude extraction as a template here, change latitude for longitude in both places and you should be good to go.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 09:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21837#M3647</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-02T09:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: No regex could be learned. Try providing different examples or restriction.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21838#M3648</link>
      <description>&lt;P&gt;Problem is that the EXTRACT in the original question would capture both long and lat, calling them both latitude (or just keeping one of them if it's not a multi-valued field).&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 12:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21838#M3648</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-02T12:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: No regex could be learned. Try providing different examples or restriction.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21839#M3649</link>
      <description>&lt;P&gt;Oh, right. Didn't see that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 14:10:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21839#M3649</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-02T14:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: No regex could be learned. Try providing different examples or restriction.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21840#M3650</link>
      <description>&lt;P&gt;&lt;LATITUDE type="Edm.Double"&gt;1.4004771683629058&lt;A href="https://answers.splunk.comd:latitude"&gt;/d:latitude&lt;/A&gt; &lt;BR /&gt;
&lt;LONGITUDE type="Edm.Double"&gt;103.8579338813216&lt;A href="https://answers.splunk.comd:longitude"&gt;/d:longitude&lt;/A&gt;&lt;/LONGITUDE&gt;&lt;/LATITUDE&gt;&lt;/P&gt;

&lt;P&gt;Given the data format above, I would choose to do like so;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
EXTRACT-lat = &amp;gt;(?&amp;lt;latitude&amp;gt;[^&amp;lt;]+)&amp;lt;/d:latitude
EXTRACT-long = &amp;gt;(?&amp;lt;longitude&amp;gt;[^&amp;lt;]+)&amp;lt;/d:longitude
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 14:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/No-regex-could-be-learned-Try-providing-different-examples-or/m-p/21840#M3650</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-02T14:58:04Z</dc:date>
    </item>
  </channel>
</rss>

