FortiSOAR Knowledge Base
FortiSOAR: Security Orchestration and Response software provides innovative case management, automation, and orchestration. It pulls together all of an organization's tools, helps unify operations, and reduce alert fatigue, context switching, and the mean time to respond to incidents.
sramanujam
Staff
Staff
Article Id 425023
Description This article describes Jinja templating for any timestamp with millisecond or nanosecond precision.
Scope FortiSOAR 7.5.x, 7.6.x.
Solution

Step 1: Go to Playbook Designer -> Tools -> Jinja Editor and load the Environment.

 

Step 2: For millisecond precision, use the following template.

 

{{ arrow.get (vars['Last Seen Time']).to("UTC").format("YYYY-MM-DD HH:mm:ss.SSS ZZ") }}

 

Step 3: For nanosecond precision, use the following elow template.

 

{{ arrow.get (vars['Last Seen Time']).to("UTC").format("YYYY-MM-DD HH:mm:ss.SSSSSS ZZ") }}

 

Step 4: After testing using the Jinja Editor, update the playbook steps accordingly.

Contributors