<?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: Splunk Log data Enrichment in notifications in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Log-data-Enrichment-in-notifications/m-p/451723#M94362</link>
    <description>&lt;P&gt;if the error code and the message are already part of your event, then you could just extract the information and send only required field.&lt;/P&gt;

&lt;P&gt;For e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults |eval string="this is occurred due to the user created a document with the same name at logs c:/apps/oop error_Num:4006 Duplicate document created" 
|rex field=string "^(?:[^:\n]*:){2}\d+\s+(?P&amp;lt;message&amp;gt;.+)" |table message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You shall use the Splunk Field Extractor to extract the messages&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2018 13:51:49 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2018-07-19T13:51:49Z</dc:date>
    <item>
      <title>Splunk Log data Enrichment in notifications</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Log-data-Enrichment-in-notifications/m-p/451722#M94361</link>
      <description>&lt;P&gt;I have logs loaded to splunk, I created few alerts to send the error email notifications&lt;BR /&gt;
till this it is working fine.., only one bottleneck here is they don't want whole error msg &lt;BR /&gt;
in the email instead then need only meaning ful msg say example:"error_Num:4006  "Duplicate &lt;BR /&gt;
document created" like this.., before that error_Num:4006 "this is occurred due to the user created&lt;BR /&gt;
a document with the same name at logs c:/apps/oop"&lt;/P&gt;

&lt;P&gt;I created a .csv file and uploaded with 2 perameters:&lt;BR /&gt;
Error_num, Desc &lt;BR /&gt;
4006,Duplicate document created&lt;BR /&gt;
9002,Invalid login &lt;/P&gt;

&lt;P&gt;When i user in the serach as |Inputlookup Error_num Outputlookup Desc&lt;BR /&gt;
this is not working .., pls help in this &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Log-data-Enrichment-in-notifications/m-p/451722#M94361</guid>
      <dc:creator>maheswar6523</dc:creator>
      <dc:date>2020-09-29T20:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Log data Enrichment in notifications</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Log-data-Enrichment-in-notifications/m-p/451723#M94362</link>
      <description>&lt;P&gt;if the error code and the message are already part of your event, then you could just extract the information and send only required field.&lt;/P&gt;

&lt;P&gt;For e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults |eval string="this is occurred due to the user created a document with the same name at logs c:/apps/oop error_Num:4006 Duplicate document created" 
|rex field=string "^(?:[^:\n]*:){2}\d+\s+(?P&amp;lt;message&amp;gt;.+)" |table message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You shall use the Splunk Field Extractor to extract the messages&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 13:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Log-data-Enrichment-in-notifications/m-p/451723#M94362</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-07-19T13:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Log data Enrichment in notifications</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Log-data-Enrichment-in-notifications/m-p/451724#M94363</link>
      <description>&lt;P&gt;Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your Existing Search For Alerts Here
| lookup YourLookupFileHere.csv Error_num OUTPUT Desc
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Log-data-Enrichment-in-notifications/m-p/451724#M94363</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-19T14:51:52Z</dc:date>
    </item>
  </channel>
</rss>

