<?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 Help creating a search that monitors after hour employee login in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-creating-a-search-that-monitors-after-hour-employee-login/m-p/464800#M130969</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;
I had requested for anyone to provide me with a good search to monitor after hour employee login and I was provided with what doesn't seem to be a search but rather looks like a macro definition as you can see below. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [out_working_time]
 definition = | eval day=strftime(_time,"%d/%m/%Y")\
 | lookup SIEMCAL.csv day OUTPUT type\
 | search Tipo=2 OR (Tipo=1 (date_hour&amp;gt;14 OR (date_hour&amp;lt;7 AND date_minute&amp;lt;45))) OR (Tipo=0 (date_hour&amp;gt;20 OR (date_hour&amp;lt;8 AND date_minute&amp;lt;45)))
 iseval = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can anyone help me with this search, please? &lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 16:15:52 GMT</pubDate>
    <dc:creator>essibong1</dc:creator>
    <dc:date>2019-12-11T16:15:52Z</dc:date>
    <item>
      <title>Help creating a search that monitors after hour employee login</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-creating-a-search-that-monitors-after-hour-employee-login/m-p/464800#M130969</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I had requested for anyone to provide me with a good search to monitor after hour employee login and I was provided with what doesn't seem to be a search but rather looks like a macro definition as you can see below. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [out_working_time]
 definition = | eval day=strftime(_time,"%d/%m/%Y")\
 | lookup SIEMCAL.csv day OUTPUT type\
 | search Tipo=2 OR (Tipo=1 (date_hour&amp;gt;14 OR (date_hour&amp;lt;7 AND date_minute&amp;lt;45))) OR (Tipo=0 (date_hour&amp;gt;20 OR (date_hour&amp;lt;8 AND date_minute&amp;lt;45)))
 iseval = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can anyone help me with this search, please? &lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 16:15:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-creating-a-search-that-monitors-after-hour-employee-login/m-p/464800#M130969</guid>
      <dc:creator>essibong1</dc:creator>
      <dc:date>2019-12-11T16:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating a search that monitors after hour employee login</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-creating-a-search-that-monitors-after-hour-employee-login/m-p/464801#M130970</link>
      <description>&lt;P&gt;If you have the logs of employee login, it should be pretty easy to extract the hour out of the timestamp and run an alert on whatever timeframe (after 5 PM and before 8 AM, or whatever you want) like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=3 # in your case this is your base search where you pull in logs
| eval hour=strftime(_time,"%H") # parse out the hour from the _time field
| search hour&amp;gt;17 OR hour &amp;lt; 8 # filter down to just logins after 5 PM or before 8 AM for example
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does this make sense/answer your question?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 16:39:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-creating-a-search-that-monitors-after-hour-employee-login/m-p/464801#M130970</guid>
      <dc:creator>aberkow</dc:creator>
      <dc:date>2019-12-11T16:39:31Z</dc:date>
    </item>
  </channel>
</rss>

