<?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: Generated pattern (regex) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69741#M17476</link>
    <description>&lt;P&gt;Now I changed it, so the inner caption group is named as well, even if it is not needed on my test instance (5.0.1). &lt;/P&gt;

&lt;P&gt;kailun, which splunk version do you use?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2013 09:29:37 GMT</pubDate>
    <dc:creator>peter_krammer</dc:creator>
    <dc:date>2013-06-20T09:29:37Z</dc:date>
    <item>
      <title>Generated pattern (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69737#M17472</link>
      <description>&lt;P&gt;I need to extract both of the words, is there anyone that knows how ? I have used this &lt;BR /&gt;
&lt;CODE&gt;(?i)summary : (?P&amp;lt;FIELDNAME&amp;gt;[\w\.]+)&lt;/CODE&gt;&lt;BR /&gt;
but it extracts only the word Mostly.&lt;/P&gt;

&lt;P&gt;summary : Mostly Cloudy&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 08:21:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69737#M17472</guid>
      <dc:creator>kailun92</dc:creator>
      <dc:date>2013-06-20T08:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Generated pattern (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69738#M17473</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;field_name&amp;gt;\S+)\s+:\s+(?&amp;lt;field_value&amp;gt;.+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Be careful about the cases of 's', because '\s' has a different meaning than '\S'.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 08:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69738#M17473</guid>
      <dc:creator>peter_krammer</dc:creator>
      <dc:date>2013-06-20T08:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Generated pattern (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69739#M17474</link>
      <description>&lt;P&gt;The questionmark in the inner caption group was producing a problem, I edited my answer to my tested solution.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 09:06:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69739#M17474</guid>
      <dc:creator>peter_krammer</dc:creator>
      <dc:date>2013-06-20T09:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Generated pattern (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69740#M17475</link>
      <description>&lt;P&gt;Invalid regex: no named extraction at position 27 (i.e., "&amp;gt;([\w.]+..."). Expected "(?P&lt;VARIABLE&gt;pattern)"&lt;/VARIABLE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 09:07:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69740#M17475</guid>
      <dc:creator>kailun92</dc:creator>
      <dc:date>2013-06-20T09:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Generated pattern (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69741#M17476</link>
      <description>&lt;P&gt;Now I changed it, so the inner caption group is named as well, even if it is not needed on my test instance (5.0.1). &lt;/P&gt;

&lt;P&gt;kailun, which splunk version do you use?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 09:29:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69741#M17476</guid>
      <dc:creator>peter_krammer</dc:creator>
      <dc:date>2013-06-20T09:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Generated pattern (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69742#M17477</link>
      <description>&lt;P&gt;I am using 5.0.2. Btw it worked but my data is inputed this way(below), it extracts this&lt;/P&gt;

&lt;P&gt;FIELDNAME&lt;BR /&gt;
Mostly Cloudy&lt;BR /&gt;
temperature &lt;BR /&gt;
Foggy&lt;BR /&gt;
temperature &lt;BR /&gt;
lastword&lt;BR /&gt;
temperature &lt;/P&gt;

&lt;P&gt;(Splunk reads my data every 5 minutes)&lt;BR /&gt;
time : 1371715104&lt;BR /&gt;
visibility : 0.67&lt;BR /&gt;
windBearing : 260&lt;BR /&gt;
windSpeed : 9.41&lt;BR /&gt;
psiAverage : 182&lt;BR /&gt;
cloudCover : 0.61&lt;BR /&gt;
dewPoint : 65.58&lt;BR /&gt;
humidity : 0.39&lt;BR /&gt;
icon : fog&lt;BR /&gt;
ozone : 267.04&lt;BR /&gt;
precipIntensity : 0&lt;BR /&gt;
pressure : 1005.64&lt;BR /&gt;
summary : Foggy&lt;BR /&gt;
temperature : 94.49&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 09:49:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69742#M17477</guid>
      <dc:creator>kailun92</dc:creator>
      <dc:date>2013-06-20T09:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Generated pattern (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69743#M17478</link>
      <description>&lt;P&gt;Well thats quite a different usecase, thanI would have guessed from your initial question. I updated my answer to extract the field_name ("summary") and the field_value ("Mostly Cloudy") seperatly. &lt;/P&gt;

&lt;P&gt;But maybe you also want to take a look at handling multiline events.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69743#M17478</guid>
      <dc:creator>peter_krammer</dc:creator>
      <dc:date>2020-09-28T14:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Generated pattern (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69744#M17479</link>
      <description>&lt;P&gt;see my comments down, I cannot post codes in here.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2013 10:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69744#M17479</guid>
      <dc:creator>kailun92</dc:creator>
      <dc:date>2013-06-20T10:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generated pattern (regex)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69745#M17480</link>
      <description>&lt;P&gt;I tried this expression and it work. Btw thanks for your help ! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;(?i)Summary : (?P&lt;CURRENT_SUMMARY&gt;.+)\n&lt;/CURRENT_SUMMARY&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2013 07:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generated-pattern-regex/m-p/69745#M17480</guid>
      <dc:creator>kailun92</dc:creator>
      <dc:date>2013-06-22T07:00:29Z</dc:date>
    </item>
  </channel>
</rss>

