<?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 Custom Subject for Splunk Alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Custom-Subject-for-Splunk-Alert/m-p/506278#M9195</link>
    <description>&lt;P&gt;I'm configured an Alert to send mail whenever Error type is triggered in windows event log. I need to customize subject for that alert like server name, event type, event ID in mail.&lt;/P&gt;&lt;P&gt;For Example: Alert triggered for 'ServerName' with 'Event Type' and 'Event ID'&lt;/P&gt;&lt;P&gt;Below is the search im using.&lt;/P&gt;&lt;P&gt;index="wineventlog" source="wineventlog:application" SourceName="MSSQLSERVER" Type=Error&lt;BR /&gt;[|inputlookup inv where client_group="*SQLServer Admin*"&lt;BR /&gt;|fields name&lt;BR /&gt;|rename name as host]&lt;BR /&gt;| table _time,host,EventID,Type,Message&lt;BR /&gt;| sort _time desc&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2020 10:48:30 GMT</pubDate>
    <dc:creator>vamsi202</dc:creator>
    <dc:date>2020-06-26T10:48:30Z</dc:date>
    <item>
      <title>Custom Subject for Splunk Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-Subject-for-Splunk-Alert/m-p/506278#M9195</link>
      <description>&lt;P&gt;I'm configured an Alert to send mail whenever Error type is triggered in windows event log. I need to customize subject for that alert like server name, event type, event ID in mail.&lt;/P&gt;&lt;P&gt;For Example: Alert triggered for 'ServerName' with 'Event Type' and 'Event ID'&lt;/P&gt;&lt;P&gt;Below is the search im using.&lt;/P&gt;&lt;P&gt;index="wineventlog" source="wineventlog:application" SourceName="MSSQLSERVER" Type=Error&lt;BR /&gt;[|inputlookup inv where client_group="*SQLServer Admin*"&lt;BR /&gt;|fields name&lt;BR /&gt;|rename name as host]&lt;BR /&gt;| table _time,host,EventID,Type,Message&lt;BR /&gt;| sort _time desc&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 10:48:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-Subject-for-Splunk-Alert/m-p/506278#M9195</guid>
      <dc:creator>vamsi202</dc:creator>
      <dc:date>2020-06-26T10:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Subject for Splunk Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-Subject-for-Splunk-Alert/m-p/506280#M9196</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223008"&gt;@vamsi202&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can reference fields from the search with&amp;nbsp;&lt;SPAN&gt;$result.&lt;/SPAN&gt;&lt;I&gt;fieldname&lt;/I&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Alert/EmailNotificationTokens" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Alert/EmailNotificationTokens&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;&lt;BR /&gt;Ralph&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 11:25:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-Subject-for-Splunk-Alert/m-p/506280#M9196</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-06-26T11:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Subject for Splunk Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Custom-Subject-for-Splunk-Alert/m-p/506298#M9198</link>
      <description>&lt;P&gt;That worked. Thanks a lot&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 14:16:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Custom-Subject-for-Splunk-Alert/m-p/506298#M9198</guid>
      <dc:creator>vamsi202</dc:creator>
      <dc:date>2020-06-26T14:16:44Z</dc:date>
    </item>
  </channel>
</rss>

