<?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: Alert when user is log off in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-when-user-is-log-off/m-p/556261#M10602</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190429"&gt;@ajromero&lt;/a&gt;&amp;nbsp;I don't find age field in your table command, there could be other reasons.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;age &amp;gt; 900 condition might not met, you can try same query in UI with | where age &amp;gt; 900 at the end exactly select time similar to schedule window. Lower age threshold and retry.&lt;/LI&gt;&lt;LI&gt;Your role/user assigned to these alerts to run alerts might not be having schedule search capability. You can run following query to find out what exactly happening with your search&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal sourcetype="scheduler" savedsearch_name=&amp;lt;your_search_name&amp;gt;​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;While configuring alert in UI ,Trigger Action under Alerts should be selected to Email and provide the correct email&lt;/LI&gt;&lt;LI&gt;could be issues while sending email to SMTP server , you can verify here.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal source="/opt/splunk/var/log/splunk/python.log" subject="&amp;lt;your_email_subject&amp;gt;" sendemail ERROR​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if it helps!&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 01:54:15 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-06-18T01:54:15Z</dc:date>
    <item>
      <title>Alert when user is log off</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-user-is-log-off/m-p/555879#M10594</link>
      <description>&lt;P&gt;I need to get an alert when a user is log off from a server, here is my query&lt;/P&gt;&lt;P&gt;index="wineventlog" user="*.COM" OR user="*"&lt;BR /&gt;| head 1 | eval age = now() - _time&lt;BR /&gt;|table _time user name&lt;/P&gt;&lt;P&gt;Then I'm setting a custom alert to&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ajromero_0-1623797502045.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14641iFD05693B121650C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ajromero_0-1623797502045.png" alt="ajromero_0-1623797502045.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but I don't get any alert&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 22:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-user-is-log-off/m-p/555879#M10594</guid>
      <dc:creator>ajromero</dc:creator>
      <dc:date>2021-06-15T22:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when user is log off</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-user-is-log-off/m-p/555885#M10595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190429"&gt;@ajromero&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try this works? added age field to table command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="wineventlog" user="*.COM" OR user="*"
| head 1 | eval age = now() - _time
|table _time user name age&lt;/LI-CODE&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if it helps!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 00:25:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-user-is-log-off/m-p/555885#M10595</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-16T00:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when user is log off</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-user-is-log-off/m-p/556190#M10600</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I already have the age field in the table and it doesn't do it&lt;/P&gt;&lt;P&gt;index="wineventlog" user="*.COM" OR user="*"&lt;BR /&gt;| head 1 | eval age = now() - _time&lt;BR /&gt;|table _time user name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 14:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-user-is-log-off/m-p/556190#M10600</guid>
      <dc:creator>ajromero</dc:creator>
      <dc:date>2021-06-17T14:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when user is log off</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-user-is-log-off/m-p/556261#M10602</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190429"&gt;@ajromero&lt;/a&gt;&amp;nbsp;I don't find age field in your table command, there could be other reasons.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;age &amp;gt; 900 condition might not met, you can try same query in UI with | where age &amp;gt; 900 at the end exactly select time similar to schedule window. Lower age threshold and retry.&lt;/LI&gt;&lt;LI&gt;Your role/user assigned to these alerts to run alerts might not be having schedule search capability. You can run following query to find out what exactly happening with your search&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal sourcetype="scheduler" savedsearch_name=&amp;lt;your_search_name&amp;gt;​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;While configuring alert in UI ,Trigger Action under Alerts should be selected to Email and provide the correct email&lt;/LI&gt;&lt;LI&gt;could be issues while sending email to SMTP server , you can verify here.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal source="/opt/splunk/var/log/splunk/python.log" subject="&amp;lt;your_email_subject&amp;gt;" sendemail ERROR​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if it helps!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 01:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-user-is-log-off/m-p/556261#M10602</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-18T01:54:15Z</dc:date>
    </item>
  </channel>
</rss>

