<?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 how to change timestamp in activity log from UTC? in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/how-to-change-timestamp-in-activity-log-from-UTC/m-p/683303#M1468</link>
    <description>&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed that timestamp in activity log is in UTC, and also while using timer app and in the event name adding "$now()" ,the timestamp is also UTC.&lt;/P&gt;&lt;P&gt;it is not the time zone I defined in the user settings nor in the administration/company settings.&lt;/P&gt;&lt;P&gt;is there a way to change the time zone from UTC to different time?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 17:09:03 GMT</pubDate>
    <dc:creator>meshorer</dc:creator>
    <dc:date>2024-04-04T17:09:03Z</dc:date>
    <item>
      <title>how to change timestamp in activity log from UTC?</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/how-to-change-timestamp-in-activity-log-from-UTC/m-p/683303#M1468</link>
      <description>&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed that timestamp in activity log is in UTC, and also while using timer app and in the event name adding "$now()" ,the timestamp is also UTC.&lt;/P&gt;&lt;P&gt;it is not the time zone I defined in the user settings nor in the administration/company settings.&lt;/P&gt;&lt;P&gt;is there a way to change the time zone from UTC to different time?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 17:09:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/how-to-change-timestamp-in-activity-log-from-UTC/m-p/683303#M1468</guid>
      <dc:creator>meshorer</dc:creator>
      <dc:date>2024-04-04T17:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to change timestamp in activity log from UTC?</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/how-to-change-timestamp-in-activity-log-from-UTC/m-p/683740#M1472</link>
      <description>&lt;P&gt;Unfortunately you'd have to change the python code to do this, at least for the timer app. If you open the timer_connector.py in $SOAR_HOME$/apps/timer_*/, then it formats the event name with this function:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    def _format_event_name(self):
        config = self.get_config()
        event_name = self._handle_py_ver_compat_for_input_str(config['event_name'])

        iso_now = datetime.datetime.now(pytz.utc).isoformat()
        label_name = config.get('ingest', {}).get('container_label', '')

        event_name = re.sub(
            r'(^|[^0-9a-zA-Z]+)(\$now)($|[^0-9a-zA-Z]+)',
            r'\g&amp;lt;1&amp;gt;{}\g&amp;lt;3&amp;gt;'.format(iso_now),
            event_name
        )&lt;/LI-CODE&gt;&lt;P&gt;the time for the $now token is obtained from datetime.datetime.now(pytz.utc).isoformat() , explicitly setting the timezone to UTC.&lt;/P&gt;&lt;P&gt;I have not looked for the code writing the activity log but would assume it is the same.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 20:31:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/how-to-change-timestamp-in-activity-log-from-UTC/m-p/683740#M1472</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-04-09T20:31:25Z</dc:date>
    </item>
  </channel>
</rss>

