Uploaded image for project: 'logstash'
  1. LOGSTASH-2259

file input plugin overrides "path" field in json

    Details

    • Type: Bug/Feature
    • Status: Resolved (View workflow)
    • Resolution: Duplicate
    • Affects versions: 1.4.0
    • Fix versions: None
    • Labels:

      Description

      If importing json via the file plugin, and your json has a field in it called "path", then logstash overwrites it with its own "path" value (for the log location)

      Could it not call the new field @path or similar? Or back up the existing "path" field before overwriting it?

      I see similar issues with the host field, though it doesn't overwrite. I would haveover like to be able to filter on whether the incoming json had a host field or not, and am unable to.

      What should be the correct logstash way of resolving this?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Philippe Weber
                Reporter:
                Alex Markham
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: