ed de created METRON-582:
----------------------------
Summary: Leading zeros in parsed strings dropped
Key: METRON-582
URL: https://issues.apache.org/jira/browse/METRON-582
Project: Metron
Issue Type: Bug
Affects Versions: 0.2.1BETA
Environment: 16 core 2.4
10G HDD
58G RAM
Azure VM
Reporter: ed de
Priority: Minor
Given a username as string of "0002", the username submitted to the parser for
any STELLAR transformations is "2", and should be "0002". therefore, any
further transforms do not occur.
Sample parser:
{
"parserClassName": "org.apache.metron.parsers.GrokParser",
"sensorTopic": "metron_jira_topic",
"parserConfig": {
"grokPath": "/patterns/metron_jira_path",
"patternLabel": "M_DELIMITED",
"timestampField": "timestamp"
},
"fieldTransformations" : [
{
"transformation" : "STELLAR"
,"output" : [ "username" ]
,"config" :
{ "username" : "TO_STRING(username)" }
}
]
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)