<?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: Automatically capitalize the first letter of every word that follows a period? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354404#M104908</link>
    <description>&lt;P&gt;@rogue670, while this question depends on what data you have, following is a roundabout way for replacing first character of every line to upper case. Due to a limit of 100 events by &lt;CODE&gt;list()&lt;/CODE&gt; argument for stats command, each one of your event should have maximum 100 lines.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval raw="this is a test string. it has characters after period in lower case.pick up first character after period and convert to upper case.test complete." 
| makemv delim="." raw 
| mvexpand raw
| eval raw=trim(raw)
| eval raw = upper(substr(raw,1,1)).substr(raw,2)."."
| stats list(raw) as raw
| nomv raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: There could be easier more direct approach using rex with sed. However, while I was able to pin point first character of every line which was lower case, I was not able to replace the same with upper case.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 09:58:50 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-09-22T09:58:50Z</dc:date>
    <item>
      <title>Automatically capitalize the first letter of every word that follows a period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354401#M104905</link>
      <description>&lt;P&gt;I am looking for the proper SPL to capitalize the first letter of every word that follows a period. I have tried several different ways using the eval/upper command. But can't quite get it right. Any help would be appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 23:15:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354401#M104905</guid>
      <dc:creator>rogue670</dc:creator>
      <dc:date>2017-09-21T23:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically capitalize the first letter of every word that follows a period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354402#M104906</link>
      <description>&lt;P&gt;@rogue670, Can you add some sample events?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 23:45:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354402#M104906</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-21T23:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically capitalize the first letter of every word that follows a period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354403#M104907</link>
      <description>&lt;P&gt;Hi rogue670,&lt;BR /&gt;
if you have something like " &lt;CODE&gt;2017-09-22 09.09.09 this is a test to take the first letter after a period a12345&lt;/CODE&gt; " and I want to find the " &lt;CODE&gt;a&lt;/CODE&gt; " letter after the period " &lt;CODE&gt;after a period&lt;/CODE&gt; " you can use rex command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your_search
| rex "after a period (?&amp;lt;letter&amp;gt;\w)"
| ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 06:48:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354403#M104907</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-09-22T06:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically capitalize the first letter of every word that follows a period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354404#M104908</link>
      <description>&lt;P&gt;@rogue670, while this question depends on what data you have, following is a roundabout way for replacing first character of every line to upper case. Due to a limit of 100 events by &lt;CODE&gt;list()&lt;/CODE&gt; argument for stats command, each one of your event should have maximum 100 lines.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval raw="this is a test string. it has characters after period in lower case.pick up first character after period and convert to upper case.test complete." 
| makemv delim="." raw 
| mvexpand raw
| eval raw=trim(raw)
| eval raw = upper(substr(raw,1,1)).substr(raw,2)."."
| stats list(raw) as raw
| nomv raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: There could be easier more direct approach using rex with sed. However, while I was able to pin point first character of every line which was lower case, I was not able to replace the same with upper case.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 09:58:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354404#M104908</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-09-22T09:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically capitalize the first letter of every word that follows a period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354405#M104909</link>
      <description>&lt;P&gt;I downvoted this post because the question was about capitalizing first letters.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 15:56:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354405#M104909</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2020-03-05T15:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically capitalize the first letter of every word that follows a period?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354406#M104910</link>
      <description>&lt;P&gt;How about this SPL leveraging sed-mode of rex...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval str="The foo is bar.  baz is fine. what?" 
| rex mode=sed field=str "s/\.( +)([a-z])/. \1__\2__/g s/__a__/A/g s/__b__/B/g s/__c__/C/g s/__d__/D/g s/__e__/E/g s/__f__/F/g s/__g__/G/g s/__h__/H/g s/__i__/I/g s/__j__/J/g s/__k__/K/g s/__l__/L/g s/__m__/M/g s/__n__/N/g s/__o__/O/g s/__p__/P/g s/__q__/Q/g s/__r__/R/g s/__s__/S/g s/__t__/T/g s/__u__/U/g s/__v__/V/g s/__w__/W/g s/__x__/X/g s/__y__/Y/g s/__z__/Z/g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ugly, but effective.  I use a variant (that doesn't require a period) to capitalize every word in a fragment for display in a table.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 17:49:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatically-capitalize-the-first-letter-of-every-word-that/m-p/354406#M104910</guid>
      <dc:creator>kulick</dc:creator>
      <dc:date>2020-04-28T17:49:10Z</dc:date>
    </item>
  </channel>
</rss>

