[
https://issues.apache.org/jira/browse/METRON-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15684730#comment-15684730
]
Otto Fowler commented on METRON-582:
------------------------------------
Grok in 0.1.0 converts integers automatically
0.1.3 allow you to specify the type as such
> 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)