IBM Support

PH22677: Logstash error when parsing json

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When logstash tries to parse the logs from Liberty, there is
    a parsing error because of incorrect formatting of the json
    logs.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty using logstashCollector in   *
    *                  20.0.0.2                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: Missing JSON in log event causes a      *
    *                      Logstash parsing error                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A Logstash parsing error occurs because the JSON log event
    created is missing the expected JSON for the first field name
    "type". The specific JSON that is missing is: \"type
    The error looks something like:
    [WARN ][logstash.filters.json    ] Error parsing json
    {:source=>"message",
    :raw=>"{\":\"liberty_accesslog\",\"hostName\":\"e075473cc673\",
    ...
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH22677

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-02-26

  • Closed date

    2020-06-02

  • Last modified date

    2020-06-02

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
02 June 2020