<?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: Missing forwarders alert format in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Missing-forwarders-alert-format/m-p/70766#M12213</link>
    <description>&lt;P&gt;The fieldformat command is used to make the field in question appear in Splunk Web as a proper human readable time but still be sortable as epoch time.  I'm afraid there isn't a simple workaround other than to adjust your alerting search to use the strftime option in eval.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2013 17:16:30 GMT</pubDate>
    <dc:creator>araitz</dc:creator>
    <dc:date>2013-02-19T17:16:30Z</dc:date>
    <item>
      <title>Missing forwarders alert format</title>
      <link>https://community.splunk.com/t5/Alerting/Missing-forwarders-alert-format/m-p/70765#M12212</link>
      <description>&lt;P&gt;I've set up alerting for missing forwarders in Deployment Monitor.&lt;BR /&gt;
Works fine, but I've noticed that the "Last connected" field is not formatted, I just get the raw seconds value, in the e-mail alert (results are sent inline).&lt;/P&gt;

&lt;P&gt;Anyone know why that happens?&lt;BR /&gt;
The search query includes a "fieldformat .... =strftime(.." operation which works fine in the web interface.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 12:59:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Missing-forwarders-alert-format/m-p/70765#M12212</guid>
      <dc:creator>reedmohn</dc:creator>
      <dc:date>2012-12-21T12:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Missing forwarders alert format</title>
      <link>https://community.splunk.com/t5/Alerting/Missing-forwarders-alert-format/m-p/70766#M12213</link>
      <description>&lt;P&gt;The fieldformat command is used to make the field in question appear in Splunk Web as a proper human readable time but still be sortable as epoch time.  I'm afraid there isn't a simple workaround other than to adjust your alerting search to use the strftime option in eval.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 17:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Missing-forwarders-alert-format/m-p/70766#M12213</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2013-02-19T17:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Missing forwarders alert format</title>
      <link>https://community.splunk.com/t5/Alerting/Missing-forwarders-alert-format/m-p/70767#M12214</link>
      <description>&lt;P&gt;See the all_fowarders.xml file and you'll find the search query to pipe the saved search into such that you can have it pretty formatted.  Remember to use the proper time ranges and replace the single quotes with ticks.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;'all_forwarders' | eval KB = round(KB, 4) | eval eps = round(eps, 4) | fields sourceHost destPort connectionType version os lastConnected lastReceived status KB eps | rename sourceHost as Forwarder destPort as "Destination Port" connectionType as  "Forwarder Type" version as "Splunk Version" os as "Platform" status as "Current Status" lastConnected as "Last Connected" lastReceived as "Last Data Received" KB as "Total KB" eps as "Average Events Per Second" | fieldformat "Last Connected"=strftime('Last Connected', "%D %H:%M:%S %p") | fieldformat "Last Data Received"=strftime('Last Data Received', "%D %H:%M:%S %p"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 14:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Missing-forwarders-alert-format/m-p/70767#M12214</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2013-03-12T14:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Missing forwarders alert format</title>
      <link>https://community.splunk.com/t5/Alerting/Missing-forwarders-alert-format/m-p/70768#M12215</link>
      <description>&lt;P&gt;Just stumbled upon this, you may have already got this working.  When you add the convert ctime(&lt;TIMEFIELD&gt;) AS timestamp after your timeformat the conversion will be applied to your email alert.&lt;/TIMEFIELD&gt;&lt;/P&gt;

&lt;P&gt;Here's what I have.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`all_forwarders` | search status="missing" | sort - lastConnected | fields sourceHost sourceIp connectionType os lastConnected status | rename sourceHost AS "Forwarder" sourceIp AS "Source IP" connectionType AS "Forwarder Type" os AS "OS" lastConnected AS "Last Connected" status AS "Current Status" | convert timeformat="%b %d, %Y %I:%m %p" ctime("Last Connected") | convert ctime(lastConnected) AS timestamp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;P.S. Make sure timestamp is all lowercase or it will show up in your result columns. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 21:45:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Missing-forwarders-alert-format/m-p/70768#M12215</guid>
      <dc:creator>jonahcofer</dc:creator>
      <dc:date>2013-06-14T21:45:15Z</dc:date>
    </item>
  </channel>
</rss>

