<?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 How to remove everything after a specific character in a line and group by that value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-everything-after-a-specific-character-in-a-line/m-p/224043#M65988</link>
    <description>&lt;P&gt;I'm trying to remove everything after the first colon that appears in a line and group by that value.&lt;/P&gt;

&lt;P&gt;An example of the data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ComputerName; User1: your job has been processed.
ComputerName; User3: your job has failed.
ComputerName; User2: your job is processing. 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm able to remove the computer name using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "ComputerName;(?&amp;lt;UsersPlus&amp;gt;[^$]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I'm not sure how to keep the username and remove everything after the colon so I can group by the username, (User1, User2, and User3) &lt;/P&gt;

&lt;P&gt;Any help would be much appreciated. &lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2015 23:01:05 GMT</pubDate>
    <dc:creator>ruhjuh</dc:creator>
    <dc:date>2015-11-10T23:01:05Z</dc:date>
    <item>
      <title>How to remove everything after a specific character in a line and group by that value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-everything-after-a-specific-character-in-a-line/m-p/224043#M65988</link>
      <description>&lt;P&gt;I'm trying to remove everything after the first colon that appears in a line and group by that value.&lt;/P&gt;

&lt;P&gt;An example of the data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ComputerName; User1: your job has been processed.
ComputerName; User3: your job has failed.
ComputerName; User2: your job is processing. 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm able to remove the computer name using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "ComputerName;(?&amp;lt;UsersPlus&amp;gt;[^$]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I'm not sure how to keep the username and remove everything after the colon so I can group by the username, (User1, User2, and User3) &lt;/P&gt;

&lt;P&gt;Any help would be much appreciated. &lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 23:01:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-everything-after-a-specific-character-in-a-line/m-p/224043#M65988</guid>
      <dc:creator>ruhjuh</dc:creator>
      <dc:date>2015-11-10T23:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove everything after a specific character in a line and group by that value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-everything-after-a-specific-character-in-a-line/m-p/224044#M65989</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;ComputerName;\s?(?&amp;lt;UsersPlus&amp;gt;[^:]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Nov 2015 23:11:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-everything-after-a-specific-character-in-a-line/m-p/224044#M65989</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-11-10T23:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove everything after a specific character in a line and group by that value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-everything-after-a-specific-character-in-a-line/m-p/224045#M65990</link>
      <description>&lt;P&gt;Thanks, this worked beautifully. &lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 23:17:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-everything-after-a-specific-character-in-a-line/m-p/224045#M65990</guid>
      <dc:creator>ruhjuh</dc:creator>
      <dc:date>2015-11-10T23:17:49Z</dc:date>
    </item>
  </channel>
</rss>

