<?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 extract text from the Message field up to the first &amp;quot;.&amp;quot; in Windows event logs? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-text-from-the-Message-field-up-to-the-first-quot/m-p/282485#M85301</link>
    <description>&lt;P&gt;We have made a dashboard to show the rare events generated by users &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Account_Name=XX* |rare limit=20 EventCode |table count, EventCode, Message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but with the message field, it outputs everything below the Message= field &lt;/P&gt;

&lt;P&gt;How can I extract from the message field up to the first "." or carriage return?&lt;/P&gt;

&lt;P&gt;What we are after is Message="An account was logged off."&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2016 06:00:59 GMT</pubDate>
    <dc:creator>daniel_knights</dc:creator>
    <dc:date>2016-06-07T06:00:59Z</dc:date>
    <item>
      <title>How to extract text from the Message field up to the first "." in Windows event logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-text-from-the-Message-field-up-to-the-first-quot/m-p/282485#M85301</link>
      <description>&lt;P&gt;We have made a dashboard to show the rare events generated by users &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Account_Name=XX* |rare limit=20 EventCode |table count, EventCode, Message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but with the message field, it outputs everything below the Message= field &lt;/P&gt;

&lt;P&gt;How can I extract from the message field up to the first "." or carriage return?&lt;/P&gt;

&lt;P&gt;What we are after is Message="An account was logged off."&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 06:00:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-text-from-the-Message-field-up-to-the-first-quot/m-p/282485#M85301</guid>
      <dc:creator>daniel_knights</dc:creator>
      <dc:date>2016-06-07T06:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract text from the Message field up to the first "." in Windows event logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-text-from-the-Message-field-up-to-the-first-quot/m-p/282486#M85302</link>
      <description>&lt;P&gt;Try this. New field msg should have everything before the first "."&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | rex field=Message "\"(?&amp;lt;msg&amp;gt;[^\.\n]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jun 2016 11:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-text-from-the-Message-field-up-to-the-first-quot/m-p/282486#M85302</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-07T11:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract text from the Message field up to the first "." in Windows event logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-text-from-the-Message-field-up-to-the-first-quot/m-p/282487#M85303</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Message=split(Message,".") | eval Short_Message=mvindex(Message,0) |table Short_Message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Edit: Depending on the message you can filter out what lines to show with (Message,0) were 0 is first line. So if you only wan't to show line 3 you can specify eval Short_Message=mvindex(Message,2). In your case the above query should be correct as you only want to show the first line in the message.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 13:50:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-text-from-the-Message-field-up-to-the-first-quot/m-p/282487#M85303</guid>
      <dc:creator>jwahlgren</dc:creator>
      <dc:date>2016-11-14T13:50:35Z</dc:date>
    </item>
  </channel>
</rss>

