<?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: How do I identify user activity outside normal hours across time zones in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-identify-user-activity-outside-normal-hours-across-time/m-p/347736#M63856</link>
    <description>&lt;P&gt;Using the below search will give your set hour based on your local timezone setting in Splunk -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search string | eval hour = strftime(_time, "%H") | where (hour&amp;lt;=5 OR hour &amp;gt;=18)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What you can try is,&lt;/P&gt;

&lt;P&gt;1) Extract the hour part from the raw event using rex and then check if that value  is &amp;lt; 6 or &amp;gt; 18.&lt;/P&gt;

&lt;P&gt;2) Adjust _time and adjust all events to same timezone and then do the check.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2017 12:41:32 GMT</pubDate>
    <dc:creator>dineshraj9</dc:creator>
    <dc:date>2017-04-27T12:41:32Z</dc:date>
    <item>
      <title>How do I identify user activity outside normal hours across time zones</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-identify-user-activity-outside-normal-hours-across-time/m-p/347735#M63855</link>
      <description>&lt;P&gt;Can someone help me identify whether I have a time zone issue or a search implementation issue?&lt;/P&gt;

&lt;P&gt;I have a props.conf under SPLUNKHOME\etc\system\local with the following:&lt;BR /&gt;
[host::CA*]&lt;BR /&gt;
TZ = US/Pacific&lt;/P&gt;

&lt;P&gt;I am in the Eastern time zone and some of the computers I am collecting events for are in the Pacific time zone (named CA01, CA02, etc). &lt;BR /&gt;
I am searching through Windows Security logs for after hour user activity where the hour is greater than 18 or less than 6. &lt;BR /&gt;
My events for lax computers include events occurring at 3PM Pacific or later. &lt;/P&gt;

&lt;P&gt;If I run a search, for all events with the applicable host name and pipe those results to a table with _time and _raw, there is a three hour difference between the _time value and the timestamp in the _raw event. &lt;BR /&gt;
Using *./splunk cmd btool props list --debug *, I confirmed that my [host::CA] and TZ = US/Pacific were in the active props configuration. &lt;/P&gt;

&lt;P&gt;My searches for events where the hour is greater than 18 rely on the following:&lt;BR /&gt;
&lt;EM&gt;search string&lt;/EM&gt; | eval hour = strftime(_time, "%H") | where (hour&amp;lt;=5 OR hour &amp;gt;=18)&lt;/P&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 12:19:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-identify-user-activity-outside-normal-hours-across-time/m-p/347735#M63855</guid>
      <dc:creator>danielransell</dc:creator>
      <dc:date>2017-04-27T12:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I identify user activity outside normal hours across time zones</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-identify-user-activity-outside-normal-hours-across-time/m-p/347736#M63856</link>
      <description>&lt;P&gt;Using the below search will give your set hour based on your local timezone setting in Splunk -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search string | eval hour = strftime(_time, "%H") | where (hour&amp;lt;=5 OR hour &amp;gt;=18)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What you can try is,&lt;/P&gt;

&lt;P&gt;1) Extract the hour part from the raw event using rex and then check if that value  is &amp;lt; 6 or &amp;gt; 18.&lt;/P&gt;

&lt;P&gt;2) Adjust _time and adjust all events to same timezone and then do the check.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 12:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-identify-user-activity-outside-normal-hours-across-time/m-p/347736#M63856</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2017-04-27T12:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I identify user activity outside normal hours across time zones</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-identify-user-activity-outside-normal-hours-across-time/m-p/347737#M63857</link>
      <description>&lt;P&gt;Thanks - My intentions are to include the results in a recurring report, so I guess my next step is to figure out Windows Security Log time extraction from the native event. I appreciate the review and feedback. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 13:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-identify-user-activity-outside-normal-hours-across-time/m-p/347737#M63857</guid>
      <dc:creator>danielransell</dc:creator>
      <dc:date>2017-04-27T13:38:32Z</dc:date>
    </item>
  </channel>
</rss>

