This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Accept
Reject

NetWitness Community

  • Home
  • Products
    • NetWitness Platform
      • Advisories
      • Documentation
        • Platform Documentation
        • Known Issues
        • Security Fixes
        • Hardware Documentation
        • Threat Content
        • Unified Data Model
        • Videos
      • Downloads
      • Integrations
      • Knowledge Base
    • NetWitness Cloud SIEM
      • Advisories
      • Documentation
      • Knowledge Base
    • NetWitness Detect AI
      • Advisories
      • Documentation
      • Knowledge Base
    • NetWitness Investigator
    • NetWitness Orchestrator
      • Advisories
      • Documentation
      • Knowledge Base
      • Legacy NetWitness Orchestrator
        • Advisories
        • Documentation
  • Community
    • Blog
    • Discussions
    • Events
    • Idea Exchange
  • Support
    • Case Portal
      • Create New Case
      • View My Cases
      • View My Team's Cases
    • Community Support
      • Getting Started
      • News & Announcements
      • Community Support Forum
      • Community Support Articles
    • Product Life Cycle
    • Support Information
    • General Security Advisories
  • Training
    • Blog
    • Certification Program
    • Course Catalog
    • New Product Readiness
    • On-Demand Subscriptions
    • Student Resources
    • Upcoming Events
  • Technology Partners
  • Trust Center
Sign InRegister Now
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
NetWitness Knowledge Base Archive
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
  • NetWitness Community
  • NetWitness Knowledge Base Archive
  • Sample ESA SMTP Template to shows esa_time/time/event_time as human readable format in RSA Security ...
  • Options
    • Subscribe to RSS Feed
    • Bookmark
    • Subscribe
    • Email to a Friend
    • Printer Friendly Page
    • Report Inappropriate Content

Sample ESA SMTP Template to shows esa_time/time/event_time as human readable format in RSA Security Analytics

Article Number

000034192

Applies To

RSA Product Set: Security Analytics
RSA Product/Service Type: Event Stream Analysis
RSA Version/Condition: 10.4.x, 10.5.x, 10.6.x
Platform: CentOS
O/S Version: 6

Issue

With default ESA SMTP template the report shows esa_time in "milliseconds" passed since the epoch, while event_time and time provided by concentrator in "seconds" passed since the epoch, as figure shown below.

Image descriptionImage description

They are not human readable time. So need adjust the esa smtp template to change the time format.

Resolution

Please modify the default SMTP template as follows: 


Find the following two lines from the original template: 
 

<td>${key}</td> 

<td><@value_of metadata[key]/></td>



ESA allows you to define useful templates with FreeMarker language. Below is a sample to change the time format.

Create a custom esa smtp template, copy the content of default SMTP template, then modify the custom template and apply the new template to the esa alert. 

For SA 10.4.x, 
Find the following two lines from the original template: 

<td>${key}</td> 
<td><@value_of metadata[key]/></td>



Change them as follows: 

<td>${key}</td> 
<td><#if key == "time" || key == "event_time">${(metadata[key] * 1000)?number_to_datetime}<#elseif key == 
"esa_time"><@value_of metadata[key]?number_to_datetime/><#else><@value_of metadata[key]/></#if></td>




For SA 10.5.x & 10.6.x, 
Find the following two lines from the original template: 

<td><span style="color: #363636; font-family: Arial; font-size: 1.1em;">${key}</span></td>
<td><span style="color: #363636; font-family: Arial; font-size: 1.1em;"><@value_of metadata[key]/></span></td>



Change them as follows: 

<td><span style="color: #363636; font-family: Arial; font-size: 1.1em;">${key}</span></td>
<td><span style="color: #363636; font-family: Arial; font-size: 1.1em;"><#if key == "time" || key == "event_time">${(metadata[key] * 1000)?number_to_datetime}<#elseif 
key == "esa_time"><@value_of metadata[key]?number_to_datetime/><#else><@value_of metadata[key]/></#if></span></td>



Below is a sample output
​Image descriptionImage description


 
Tags (34)
  • 10.4
  • 10.4.x
  • 10.5
  • 10.5.x
  • 10.6
  • 10.6.x
  • 10.x
  • Appliance
  • Customer Support Article
  • ESA
  • ESA Appliance
  • ESA Service
  • Event Stream Analysis
  • KB Article
  • Knowledge Article
  • Knowledge Base
  • NetWitness
  • NetWitness Appliance
  • NetWitness Platform
  • NW
  • NW Appliance
  • RSA NetWitness
  • RSA NetWitness Platform
  • RSA Security Analytics
  • Security Analytics
  • SIEM
  • Version 10
  • Version 10.4
  • Version 10.4.x
  • Version 10.5
  • Version 10.5.x
  • Version 10.6
  • Version 10.6.x
  • Version 10.x
0 Likes
Was this article helpful? Yes No
Share
No ratings

In this article

Version history
Last update:
‎2021-04-23 11:13 AM
Updated by:
Administrator RSA-KB-Sync Administrator

Related Content

Powered by Khoros
  • Blog
  • Events
  • Discussions
  • Idea Exchange
  • Knowledge Base
  • Case Portal
  • Community Support
  • Product Life Cycle
  • Support Information
  • About the Community
  • Terms & Conditions
  • Privacy Statement
  • Acceptable Use Policy
  • Employee Login
© 2022 RSA Security LLC or its affiliates. All rights reserved.