<?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: String formating in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/String-formating/m-p/680382#M232547</link>
    <description>&lt;P&gt;They are not extracted. They are part of log entries. Also is there a possibility to display complete Error or exception on last column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TraceNumber&amp;nbsp; &amp;nbsp;Error&amp;nbsp; &amp;nbsp; &amp;nbsp;Exception&amp;nbsp; &amp;nbsp; ReturnCode Complete/Error or Exception&lt;/P&gt;&lt;P&gt;11111&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; YES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Full Exception....................................&lt;/P&gt;&lt;P&gt;1234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; YES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Full Error........................&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2024 11:34:36 GMT</pubDate>
    <dc:creator>Satyapv</dc:creator>
    <dc:date>2024-03-12T11:34:36Z</dc:date>
    <item>
      <title>String formating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/String-formating/m-p/680239#M232515</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an Index = Application123 and it contains an Unique ID known as TraceNumber. For each Trace number we have Error's, Exceptions and return codes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a requirements to summarize in a table&amp;nbsp; Like below, If error is found in index need table value as YES if not found it should be No. Same for Exception if Exception is found then table should be Yes or else no. Note Error's, exceptions and retuncodes are in content of Index with field - Message log.&lt;/P&gt;&lt;P&gt;TraceNumber&amp;nbsp; &amp;nbsp;Error&amp;nbsp; &amp;nbsp; &amp;nbsp;Exception&amp;nbsp; &amp;nbsp; ReturnCode&lt;/P&gt;&lt;P&gt;11111&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; YES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YES&lt;/P&gt;&lt;P&gt;1234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; YES&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 07:13:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/String-formating/m-p/680239#M232515</guid>
      <dc:creator>Satyapv</dc:creator>
      <dc:date>2024-03-11T07:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: String formating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/String-formating/m-p/680243#M232516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261738"&gt;@Satyapv&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: for each &lt;SPAN&gt;TraceNumber you can have&amp;nbsp;Error="yes" (or something else) or Exception="yes" (or something else) and&amp;nbsp; &amp;nbsp; ReturnCode="yes" (or something else).You want in a table the TraceNumber and in different columns Error, Exception and ReturnCode ="yes" if there's something or "NO" if there's nothing, is it correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In this case, you have to use the fillnull command to give the values when there's no value, something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=Application123 TraceNumber=*
| eval
   Error=if(Error="*","YES","NO"),
   Exception=if(Exception="*","YES","NO"),
   ReturnCode=if(ReturnCode="*","YES","NO")
| table TraceNumber Error Exception ReturnCode&lt;/LI-CODE&gt;&lt;P&gt;It's not clear fom me if the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Error, Exception and ReturnCode fields are already extracted or not, if not, please share some sample so I can help you inextraction.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 07:47:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/String-formating/m-p/680243#M232516</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-11T07:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: String formating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/String-formating/m-p/680382#M232547</link>
      <description>&lt;P&gt;They are not extracted. They are part of log entries. Also is there a possibility to display complete Error or exception on last column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TraceNumber&amp;nbsp; &amp;nbsp;Error&amp;nbsp; &amp;nbsp; &amp;nbsp;Exception&amp;nbsp; &amp;nbsp; ReturnCode Complete/Error or Exception&lt;/P&gt;&lt;P&gt;11111&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; YES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Full Exception....................................&lt;/P&gt;&lt;P&gt;1234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; YES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Full Error........................&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 11:34:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/String-formating/m-p/680382#M232547</guid>
      <dc:creator>Satyapv</dc:creator>
      <dc:date>2024-03-12T11:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: String formating</title>
      <link>https://community.splunk.com/t5/Splunk-Search/String-formating/m-p/680389#M232548</link>
      <description>&lt;P&gt;If they are not already extracted, you need to extract the trace number and error codes etc. If you need help with this, you will need to share some representative anonymised versions of your events, with details of what you want extracted e.g. what part of the event goes into which field.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 12:34:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/String-formating/m-p/680389#M232548</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-12T12:34:54Z</dc:date>
    </item>
  </channel>
</rss>

