java.lang.NumberFormatException: For input string: "'d"

JIRA | Dave Ezrakhovich | 3 years ago
  1. 0

    Hi First of all i must thank you guys for having this awesome tool, logstash is really great. Unfortunately i'm having some issues with structuralizing logs which contains java exceptions, while regular (single line) events are parsed without any hiccups, using the multiline parser is a all different case. as i want to upload the data into bigquery i must have a single event which is a single line, and using the multiline filter i've managed to reach a case when i have a single event with an array of lines (messages) is there any (simple or not so simple) way to configure multiline parser to do so? here is my config file content: {code} input { file { path => "/data/data/trc/" start_position => "beginning" } stdin { } } filter { grok { match => { "message" => "%{DATESTAMP:VerTimeSamp} %{LOGLEVEL:VerLevel}" } } if "_grokparsefailure" not in [tags] { grok { match => { "message" => "%{DATESTAMP:ClientTimeSamp} %{LOGLEVEL:Level} %{SYSLOG5424SD:Log} %{DATA:Source} - %{GREEDYDATA:Event}" } } } else { multiline { pattern => "^(\s+as|java|com|Caused)" what => "previous" negate => true } } } output { stdout { codec => rubydebug } } {code} and here are the results i'm having: {code} 2014-03-12 04:47:59,666 INFO [Running campaings for syndicator cache-2 figure8marketing-sc SPONSORED 04:47:59.639] SpCampaignsManager - Finished (re)loading campaigns for syndicator [figure8marketing-sc(1007615)] and campaign type [SPONSORED]. [3] campaigns { "message" => "\tat com.test.events.UserEventLogger$1.run(UserEventLogger.java:107)2014-03-12 04:47:59,666 INFO [Running campaings for syndicator cache-2 figure8marketing-sc SPONSORED 04:47:59.639] SpCampaignsManager - Finished (re)loading campaigns for syndicator [figure8marketing-sc(1007615)] and campaign type [SPONSORED]. [3] campaigns", "@version" => "1", "@timestamp" => "2014-05-13T12:17:21.955Z", "host" => "poc-logstash.c.test-qa-01.internal", "VerTimeSamp" => "14-03-12 04:47:59,666", "VerLevel" => "INFO", "ClientTimeSamp" => "14-03-12 04:47:59,666", "Level" => "INFO", "Log" => "[Running campaings for syndicator cache-2 figure8marketing-sc SPONSORED 04:47:59.639]", "Source" => "SpCampaignsManager", "Event" => "Finished (re)loading campaigns for syndicator [figure8marketing-sc(1007615)] and campaign type [SPONSORED]. [3] campaigns" } 2014-03-12 04:47:59,755 ERROR [Event backlog] Crypto - Failed to decode d7903bce745b58fc'd061c21ffcd5dbc java.lang.NumberFormatException: For input string: "'d" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:449) at com.test.utils.StringUtils.parseHexString(StringUtils.java:73) at com.test.utils.Crypto.decode(Crypto.java:87) at com.test.events.UserEventLogger.decodeId(UserEventLogger.java:147) at com.test.events.UserEventLogger.access$1300(UserEventLogger.java:36) at com.test.events.UserEventLogger$1.run(UserEventLogger.java:107){ "message" => "2014-03-12 04:47:59,755 ERROR [Event backlog] Crypto - Failed to decode d7903bce745b58fc'd061c21ffcd5dbc", "@version" => "1", "@timestamp" => "2014-05-13T12:17:27.264Z", "host" => "poc-logstash.c.test-qa-01.internal", "VerTimeSamp" => "14-03-12 04:47:59,755", "VerLevel" => "ERROR", "tags" => [ [0] "_grokparsefailure" ] } { "message" => [ [0] "java.lang.NumberFormatException: For input string: \"'d\"", [1] "\tat java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)", [2] "\tat java.lang.Integer.parseInt(Integer.java:449)", [3] "\tat com.test.utils.StringUtils.parseHexString(StringUtils.java:73)", [4] "\tat com.test.utils.Crypto.decode(Crypto.java:87)", [5] "\tat com.test.events.UserEventLogger.decodeId(UserEventLogger.java:147)", [6] "\tat com.test.events.UserEventLogger.access$1300(UserEventLogger.java:36)" ], "@version" => "1", "@timestamp" => [ [0] "2014-05-13T12:16:32.264Z", [1] "2014-05-13T12:16:32.265Z" ], "host" => "poc-logstash.c.test-qa-01.internal", "tags" => [ [0] "_grokparsefailure", [1] "multiline" ] } {code}

    JIRA | 3 years ago | Dave Ezrakhovich
    java.lang.NumberFormatException: For input string: "'d"
  2. 0

    Hi First of all i must thank you guys for having this awesome tool, logstash is really great. Unfortunately i'm having some issues with structuralizing logs which contains java exceptions, while regular (single line) events are parsed without any hiccups, using the multiline parser is a all different case. as i want to upload the data into bigquery i must have a single event which is a single line, and using the multiline filter i've managed to reach a case when i have a single event with an array of lines (messages) is there any (simple or not so simple) way to configure multiline parser to do so? here is my config file content: {code} input { file { path => "/data/data/trc/" start_position => "beginning" } stdin { } } filter { grok { match => { "message" => "%{DATESTAMP:VerTimeSamp} %{LOGLEVEL:VerLevel}" } } if "_grokparsefailure" not in [tags] { grok { match => { "message" => "%{DATESTAMP:ClientTimeSamp} %{LOGLEVEL:Level} %{SYSLOG5424SD:Log} %{DATA:Source} - %{GREEDYDATA:Event}" } } } else { multiline { pattern => "^(\s+as|java|com|Caused)" what => "previous" negate => true } } } output { stdout { codec => rubydebug } } {code} and here are the results i'm having: {code} 2014-03-12 04:47:59,666 INFO [Running campaings for syndicator cache-2 figure8marketing-sc SPONSORED 04:47:59.639] SpCampaignsManager - Finished (re)loading campaigns for syndicator [figure8marketing-sc(1007615)] and campaign type [SPONSORED]. [3] campaigns { "message" => "\tat com.test.events.UserEventLogger$1.run(UserEventLogger.java:107)2014-03-12 04:47:59,666 INFO [Running campaings for syndicator cache-2 figure8marketing-sc SPONSORED 04:47:59.639] SpCampaignsManager - Finished (re)loading campaigns for syndicator [figure8marketing-sc(1007615)] and campaign type [SPONSORED]. [3] campaigns", "@version" => "1", "@timestamp" => "2014-05-13T12:17:21.955Z", "host" => "poc-logstash.c.test-qa-01.internal", "VerTimeSamp" => "14-03-12 04:47:59,666", "VerLevel" => "INFO", "ClientTimeSamp" => "14-03-12 04:47:59,666", "Level" => "INFO", "Log" => "[Running campaings for syndicator cache-2 figure8marketing-sc SPONSORED 04:47:59.639]", "Source" => "SpCampaignsManager", "Event" => "Finished (re)loading campaigns for syndicator [figure8marketing-sc(1007615)] and campaign type [SPONSORED]. [3] campaigns" } 2014-03-12 04:47:59,755 ERROR [Event backlog] Crypto - Failed to decode d7903bce745b58fc'd061c21ffcd5dbc java.lang.NumberFormatException: For input string: "'d" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:449) at com.test.utils.StringUtils.parseHexString(StringUtils.java:73) at com.test.utils.Crypto.decode(Crypto.java:87) at com.test.events.UserEventLogger.decodeId(UserEventLogger.java:147) at com.test.events.UserEventLogger.access$1300(UserEventLogger.java:36) at com.test.events.UserEventLogger$1.run(UserEventLogger.java:107){ "message" => "2014-03-12 04:47:59,755 ERROR [Event backlog] Crypto - Failed to decode d7903bce745b58fc'd061c21ffcd5dbc", "@version" => "1", "@timestamp" => "2014-05-13T12:17:27.264Z", "host" => "poc-logstash.c.test-qa-01.internal", "VerTimeSamp" => "14-03-12 04:47:59,755", "VerLevel" => "ERROR", "tags" => [ [0] "_grokparsefailure" ] } { "message" => [ [0] "java.lang.NumberFormatException: For input string: \"'d\"", [1] "\tat java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)", [2] "\tat java.lang.Integer.parseInt(Integer.java:449)", [3] "\tat com.test.utils.StringUtils.parseHexString(StringUtils.java:73)", [4] "\tat com.test.utils.Crypto.decode(Crypto.java:87)", [5] "\tat com.test.events.UserEventLogger.decodeId(UserEventLogger.java:147)", [6] "\tat com.test.events.UserEventLogger.access$1300(UserEventLogger.java:36)" ], "@version" => "1", "@timestamp" => [ [0] "2014-05-13T12:16:32.264Z", [1] "2014-05-13T12:16:32.265Z" ], "host" => "poc-logstash.c.test-qa-01.internal", "tags" => [ [0] "_grokparsefailure", [1] "multiline" ] } {code}

    JIRA | 3 years ago | Dave Ezrakhovich
    java.lang.NumberFormatException: For input string: "'d"
  3. 0

    (sorry, not yet implemented): Error inflating class <unknown>

    GitHub | 3 years ago | tsagi
    android.view.InflateException: XML file /Users/tsagi/Development/jekyll-client-for-android/JekyllForAndroid/build/res/all/beta/layout/activity_login.xml line #-1 (sorry, not yet implemented): Error inflating class <unknown>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Support 'black' as color for SVG files

    GitHub | 4 years ago | processing-bugs
    java.lang.NumberFormatException: For input string: &quot;lack&quot;
  6. 0

    java BigInteger manipulation

    Stack Overflow | 4 years ago | Miranda
    java.lang.NumberFormatException: For input string: "[C@86c347"

  1. Handemelindo 6 times, last 4 days ago
  2. bmacedo 2 times, last 5 days ago
  3. MoYapro 1 times, last 1 week ago
  4. filpgame 4 times, last 3 weeks ago
  5. silex 6 times, last 1 month ago
32 more registered users
63 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    For input string: "'d"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Integer.parseInt
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    2. java.lang.Integer.parseInt(Integer.java:449)
    2 frames
  3. com.test.utils
    Crypto.decode
    1. com.test.utils.StringUtils.parseHexString(StringUtils.java:73)
    2. com.test.utils.Crypto.decode(Crypto.java:87)
    2 frames
  4. com.test.events
    UserEventLogger$1.run
    1. com.test.events.UserEventLogger.decodeId(UserEventLogger.java:147)
    2. com.test.events.UserEventLogger.access$1300(UserEventLogger.java:36)
    3. com.test.events.UserEventLogger$1.run(UserEventLogger.java:107)
    3 frames