<?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: Substring only the displayed data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Substring-only-the-displayed-data/m-p/410763#M167213</link>
    <description>&lt;P&gt;| eval Message = substr(Message 1,100)  &lt;/P&gt;</description>
    <pubDate>Sun, 28 Oct 2018 12:27:22 GMT</pubDate>
    <dc:creator>valiquet</dc:creator>
    <dc:date>2018-10-28T12:27:22Z</dc:date>
    <item>
      <title>Substring only the displayed data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Substring-only-the-displayed-data/m-p/410762#M167212</link>
      <description>&lt;P&gt;The goal here is to let the search filter on the full values but only return a portion (substring) of the "Message" field to the table in the below query. &lt;/P&gt;

&lt;P&gt;Often we will have an idea of the event based on the first 100 characters but I need the full messages to be evaluated as truncating them at a search level might cause undesired results. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=db_apps_digital host=abc* OR host=abc* NOT host=abc NOT host=zxc 
   | spath "Properties.Application" 
   | search "Properties.Application"="app01" OR "Properties.Application"="app02" OR "Properties.Application"="app03"   
   | eval LastEventDateTime=strftime(strptime(LastEventDateTime,"%Y-%m-%dT%H:%M:%S.%N%z") ,"%Y-%m-%d %H:%M:%S")   
   | stats count latest(Timestamp) as LastEventDateTime by Properties.Message, Level, Properties.Application
   | sort -count, Level
   | head 100
   | rename Properties.Application as Application, Properties.Message as Message
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Oct 2018 06:28:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Substring-only-the-displayed-data/m-p/410762#M167212</guid>
      <dc:creator>rossboss1989</dc:creator>
      <dc:date>2018-10-08T06:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Substring only the displayed data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Substring-only-the-displayed-data/m-p/410763#M167213</link>
      <description>&lt;P&gt;| eval Message = substr(Message 1,100)  &lt;/P&gt;</description>
      <pubDate>Sun, 28 Oct 2018 12:27:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Substring-only-the-displayed-data/m-p/410763#M167213</guid>
      <dc:creator>valiquet</dc:creator>
      <dc:date>2018-10-28T12:27:22Z</dc:date>
    </item>
  </channel>
</rss>

