You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Sunny Kumar (JIRA)" <ji...@apache.org> on 2016/06/15 15:57:09 UTC
[jira] [Created] (METRON-226) Field transformation utility for time
zone conversion
Sunny Kumar created METRON-226:
----------------------------------
Summary: Field transformation utility for time zone conversion
Key: METRON-226
URL: https://issues.apache.org/jira/browse/METRON-226
Project: Metron
Issue Type: New Feature
Reporter: Sunny Kumar
Priority: Minor
The user would be able to provide input of the timezone for a stream in json for the specific parser. The field transformation will convert the time stamp to UTC and will also take care of the Daylight Saving offset. The code in the JSON will look like:
"fieldTransformations" : [
{
"input" : "timestamp",
"transformation": "TRANSFORM_TO_UTC_EPOCH",
"config":
{
"timeZone":"America/New_York"
}
}
],
The timezone should be valid as per the list at:
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
which are supported by the java.util.TimeZone package.
An invalid timezone would be defaulted to UTC.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)