<?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: Regex to extract letters only in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709625#M239823</link>
    <description>&lt;P&gt;One more question &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, how can we ignore the&amp;nbsp; bunch of letters coming in alphanumeric words delimited by hyphen .&lt;BR /&gt;Example:&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;CSR&lt;/SPAN&gt;-345sc453-a2da-4850-aacb-7f35d5127b21&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Sending&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;error&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;response&lt;/SPAN&gt; &lt;SPAN class=""&gt;back&lt;/SPAN&gt; &lt;SPAN class=""&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;2136&lt;/SPAN&gt; &lt;SPAN class=""&gt;msecs.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;Expected output&lt;/STRONG&gt; - CSR&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Sending&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;error&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;response&lt;/SPAN&gt; &lt;SPAN class=""&gt;back&lt;/SPAN&gt; &lt;SPAN class=""&gt;in&amp;nbsp;msecs&amp;nbsp; &lt;STRONG&gt;OR&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN class=""&gt;Sending&lt;/SPAN&gt; &lt;SPAN class=""&gt;error&lt;/SPAN&gt; response back in&amp;nbsp;msecs&lt;BR /&gt;&lt;BR /&gt;Regex shared by you&amp;nbsp; is including "aacb" also&amp;nbsp; but we want to ignore it.&amp;nbsp;&lt;BR /&gt;Requirement is to extract the statement without any correlation/context id so as to uniquely identify error statement.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 20:24:17 GMT</pubDate>
    <dc:creator>poojak2579</dc:creator>
    <dc:date>2025-01-23T20:24:17Z</dc:date>
    <item>
      <title>Regex to extract letters only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709378#M239744</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Can any one please help in creating regex to extract 12 words(Words with characters/letters only) from beginning of the field? Sharing few samples with required output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1)00012243asdsfgh - No recommendations from System A. Message - ERROR: System A | No Matching Recommendations

Required Output - No recommendations from System A. Message - ERROR: System A | No Matching Recommendations

2)001b135c-5348-4arf-b3vbv344v - Validation Exception reason - Empty/Invalid Page_Placement Value ::: Input received - Channel1; ::: Other details - 001sss-445-4f45-b3ad-gsdfg34 - Incorrect page and placement found: Channel1;

Required Output - Validation Exception reason - Empty/Invalid Page_Placement Value ::: Input received - Channel1;


3)00assew-34df-34de-d34k-sf34546d :: Invalid requestTimestamp : 2025-01-21T21:36:21.224Z

Required Output:Invalid requestTimestamp

4)01hg34hgh44hghg4 - Exception while calling System A - null

Required Output:Exception while calling System A - null&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 22:19:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709378#M239744</guid>
      <dc:creator>poojak2579</dc:creator>
      <dc:date>2025-01-21T22:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to extract letters only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709412#M239766</link>
      <description>&lt;P&gt;You can use rex, but your example is not entirely clear - you are expecting - and | and / characters in your output?&lt;/P&gt;&lt;P&gt;See the rex statement in this example with your data.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults format=csv data="raw
00012243asdsfgh - No recommendations from System A. Message - ERROR: System A | No Matching Recommendations
001b135c-5348-4arf-b3vbv344v - Validation Exception reason - Empty/Invalid Page_Placement Value ::: Input received - Channel1; ::: Other details - 001sss-445-4f45-b3ad-gsdfg34 - Incorrect page and placement found: Channel1;
00assew-34df-34de-d34k-sf34546d :: Invalid requestTimestamp : 2025-01-21T21:36:21.224Z
01hg34hgh44hghg4 - Exception while calling System A - null"
| rex field=raw max_match=0 " (?&amp;lt;words&amp;gt;[A-Za-z]+)"
| eval words = mvjoin(words, " ")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 05:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709412#M239766</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2025-01-22T05:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to extract letters only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709440#M239782</link>
      <description>&lt;P&gt;Your stated requirement does not match completely with your examples. For example, some expected outputs have fewer "words" than are available in the "field". Also, is there an unwritten requirement that your "words" begin with a letter but could contain numbers?&lt;/P&gt;&lt;P&gt;Making some assumptions derived from your written requirement and expected outputs, you could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults format=csv data="raw
00012243asdsfgh - No recommendations from System A. Message - ERROR: System A | No Matching Recommendations
001b135c-5348-4arf-b3vbv344v - Validation Exception reason - Empty/Invalid Page_Placement Value ::: Input received - Channel1; ::: Other details - 001sss-445-4f45-b3ad-gsdfg34 - Incorrect page and placement found: Channel1;
00assew-34df-34de-d34k-sf34546d :: Invalid requestTimestamp : 2025-01-21T21:36:21.224Z
01hg34hgh44hghg4 - Exception while calling System A - null"
| rex field=raw " (?&amp;lt;dozenwords&amp;gt;([A-Za-z][A-Za-z0-9]*[^A-Za-z0-9]+){0,11}[A-Za-z][A-Za-z0-9]*)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Jan 2025 09:39:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709440#M239782</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-22T09:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to extract letters only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709541#M239807</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Thanks for sharing the regex. It is working for some of the examples but not for all.&amp;nbsp;I think this is because I have not clearly explained the requirement. My requirement is to capture all the words that have letters only and completely ignore(reject) alphanumeric/numeric words &amp;amp; special characters.&amp;nbsp;Also, I would like to extract full text , not limited to 12 words. Could you please share the regex and explanation also if possible?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sharing couple of examples where&amp;nbsp; regex is not working:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1)Exception message - CSR-a4cd725c-3d73-426c-b254-5e4f4adc4b26 - Generating exception because of multiple stage failure - abc_ELIGIBILITY"

Output with regex - "Exception message - CSR" and for some other records it is coming as "Exception message - CSR-a4cd725c"
Required Output - Exception Message CSR Generating exception because of multiple stage failure abc ELIGIBILITY


2)0013c5fb1737577541466 - Exception message - 0013c5fb1737577541466 - Generating exception because of multiple stage failure - abc_ELIGIBILITY

Output - Exception message
Required Output - Exception message Generating exception because of multiple stage failure abc_ELIGIBILITY

3) b187c4411737535464656 - Exception message - b187c4411737535464656 - Exception in abc module. Creating error response - b187c4411737535464656 - Response creation couldn't happen for all the placements. Creating error response.

Exception message - b187c4411737535464656 - Exception in abc module. Creating error response - b187c4411737535464656 - Response
Required Output - Exception message Exception in abc module. Creating error response Response creation couldn't happen for all the placements. Creating error response.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 00:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709541#M239807</guid>
      <dc:creator>poojak2579</dc:creator>
      <dc:date>2025-01-23T00:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to extract letters only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709542#M239808</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes, I would like to ignore special characters also if possible.&lt;BR /&gt;Your regex will work if the requirement is to ignore the numeric digits in alphanumaric words but my requirement is to completely ignore the words&amp;nbsp; that have numeric digits.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 00:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709542#M239808</guid>
      <dc:creator>poojak2579</dc:creator>
      <dc:date>2025-01-23T00:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to extract letters only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709571#M239811</link>
      <description>&lt;P&gt;Again, your words don't quite match your expected output, however, does this work for you?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults format=csv data="raw
00012243asdsfgh - No recommendations from System A. Message - ERROR: System A | No Matching Recommendations
001b135c-5348-4arf-b3vbv344v - Validation Exception reason - Empty/Invalid Page_Placement Value ::: Input received - Channel1; ::: Other details - 001sss-445-4f45-b3ad-gsdfg34 - Incorrect page and placement found: Channel1;
00assew-34df-34de-d34k-sf34546d :: Invalid requestTimestamp : 2025-01-21T21:36:21.224Z
01hg34hgh44hghg4 - Exception while calling System A - null
Exception message - CSR-a4cd725c-3d73-426c-b254-5e4f4adc4b26 - Generating exception because of multiple stage failure - abc_ELIGIBILITY
0013c5fb1737577541466 - Exception message - 0013c5fb1737577541466 - Generating exception because of multiple stage failure - abc_ELIGIBILITY
b187c4411737535464656 - Exception message - b187c4411737535464656 - Exception in abc module. Creating error response - b187c4411737535464656 - Response creation couldn't happen for all the placements. Creating error response."
| rex field=raw max_match=0 "(\b)(?&amp;lt;words&amp;gt;[A-Za-z'_]+)(\b|$)"
| eval words = mvjoin(words, " ")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Jan 2025 09:36:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709571#M239811</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-23T09:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to extract letters only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709623#M239822</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; &amp;amp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp; for all your help!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 19:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709623#M239822</guid>
      <dc:creator>poojak2579</dc:creator>
      <dc:date>2025-01-23T19:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to extract letters only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709625#M239823</link>
      <description>&lt;P&gt;One more question &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, how can we ignore the&amp;nbsp; bunch of letters coming in alphanumeric words delimited by hyphen .&lt;BR /&gt;Example:&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;CSR&lt;/SPAN&gt;-345sc453-a2da-4850-aacb-7f35d5127b21&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Sending&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;error&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;response&lt;/SPAN&gt; &lt;SPAN class=""&gt;back&lt;/SPAN&gt; &lt;SPAN class=""&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;2136&lt;/SPAN&gt; &lt;SPAN class=""&gt;msecs.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;Expected output&lt;/STRONG&gt; - CSR&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Sending&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;error&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;response&lt;/SPAN&gt; &lt;SPAN class=""&gt;back&lt;/SPAN&gt; &lt;SPAN class=""&gt;in&amp;nbsp;msecs&amp;nbsp; &lt;STRONG&gt;OR&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN class=""&gt;Sending&lt;/SPAN&gt; &lt;SPAN class=""&gt;error&lt;/SPAN&gt; response back in&amp;nbsp;msecs&lt;BR /&gt;&lt;BR /&gt;Regex shared by you&amp;nbsp; is including "aacb" also&amp;nbsp; but we want to ignore it.&amp;nbsp;&lt;BR /&gt;Requirement is to extract the statement without any correlation/context id so as to uniquely identify error statement.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 20:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709625#M239823</guid>
      <dc:creator>poojak2579</dc:creator>
      <dc:date>2025-01-23T20:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to extract letters only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709631#M239827</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults format=csv data="raw
CSR-345sc453-a2da-4850-aacb-7f35d5127b21 - Sending error response back in 2136 msecs.
00012243asdsfgh - No recommendations from System A. Message - ERROR: System A | No Matching Recommendations
001b135c-5348-4arf-b3vbv344v - Validation Exception reason - Empty/Invalid Page_Placement Value ::: Input received - Channel1; ::: Other details - 001sss-445-4f45-b3ad-gsdfg34 - Incorrect page and placement found: Channel1;
00assew-34df-34de-d34k-sf34546d :: Invalid requestTimestamp : 2025-01-21T21:36:21.224Z
01hg34hgh44hghg4 - Exception while calling System A - null
Exception message - CSR-a4cd725c-3d73-426c-b254-5e4f4adc4b26 - Generating exception because of multiple stage failure - abc_ELIGIBILITY
0013c5fb1737577541466 - Exception message - 0013c5fb1737577541466 - Generating exception because of multiple stage failure - abc_ELIGIBILITY
b187c4411737535464656 - Exception message - b187c4411737535464656 - Exception in abc module. Creating error response - b187c4411737535464656 - Response creation couldn't happen for all the placements. Creating error response."
| rex field=raw max_match=0 "(\b)(?&amp;lt;words&amp;gt;[A-Za-z'_]+)(\b|$)(?!\-)"
| eval words = mvjoin(words, " ")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Jan 2025 21:05:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-extract-letters-only/m-p/709631#M239827</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-23T21:05:47Z</dc:date>
    </item>
  </channel>
</rss>

