Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63864

Allow add custom fields to JSON payload sent to the indexer

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • logstash-plugin
    • None

      Now, there are hardcoded fields that are kept in JSON payload:

      "data":{
      "id":"2014-10-13_19-51-29",
      "result":"SUCCESS",
      "projectName":"my_example_job",
      "fullProjectName":"folder/my_example_job",
      "displayName":"#1",
      .......
      ....
      ..
      https://github.com/jenkinsci/logstash-plugin/blob/master/src/main/java/jenkins/plugins/logstash/persistence/BuildData.java#L158-L180

       

      I'd like to be able to add custom fields to JSON payload sent to the indexer. It would be very helpfull when JSON paylod is sent to Logstash when some field-filters were set/specified.

          [JENKINS-63864] Allow add custom fields to JSON payload sent to the indexer

          Maksym Yatsenko created issue -
          Maksym Yatsenko made changes -
          Description Original: Now, there are hardcoded fields that are kept in JSON payload:


          "data":{
                "id":"2014-10-13_19-51-29",
                "result":"SUCCESS",
                "projectName":"my_example_job",
                "fullProjectName":"folder/my_example_job",
                "displayName":"#1",
                 .......
                 ....
                 ..
          [https://github.com/jenkinsci/logstash-plugin/blob/master/src/main/java/jenkins/plugins/logstash/persistence/BuildData.java#L158-L180]

           

          I'd like to be able to add custom fields to JSON payload sent to the indexer.
          New: Now, there are hardcoded fields that are kept in JSON payload:

          "data":{
           "id":"2014-10-13_19-51-29",
           "result":"SUCCESS",
           "projectName":"my_example_job",
           "fullProjectName":"folder/my_example_job",
           "displayName":"#1",
           .......
           ....
           ..
           [https://github.com/jenkinsci/logstash-plugin/blob/master/src/main/java/jenkins/plugins/logstash/persistence/BuildData.java#L158-L180]

           

          I'd like to be able to add custom fields to JSON payload sent to the indexer. It would be very helpfull when JSON paylod is sent to Logstash when some field-filters were specified.
          Maksym Yatsenko made changes -
          Description Original: Now, there are hardcoded fields that are kept in JSON payload:

          "data":{
           "id":"2014-10-13_19-51-29",
           "result":"SUCCESS",
           "projectName":"my_example_job",
           "fullProjectName":"folder/my_example_job",
           "displayName":"#1",
           .......
           ....
           ..
           [https://github.com/jenkinsci/logstash-plugin/blob/master/src/main/java/jenkins/plugins/logstash/persistence/BuildData.java#L158-L180]

           

          I'd like to be able to add custom fields to JSON payload sent to the indexer. It would be very helpfull when JSON paylod is sent to Logstash when some field-filters were specified.
          New: Now, there are hardcoded fields that are kept in JSON payload:

          "data":{
           "id":"2014-10-13_19-51-29",
           "result":"SUCCESS",
           "projectName":"my_example_job",
           "fullProjectName":"folder/my_example_job",
           "displayName":"#1",
           .......
           ....
           ..
           [https://github.com/jenkinsci/logstash-plugin/blob/master/src/main/java/jenkins/plugins/logstash/persistence/BuildData.java#L158-L180]

           

          I'd like to be able to add custom fields to JSON payload sent to the indexer. It would be very helpfull when JSON paylod is sent to Logstash when some field-filters were set/specified.

          There have been some similiar requests e.g. JENKINS-50455 and also some attempts at implementing it (https://github.com/jenkinsci/logstash-plugin/pull/71). Nothing has been completed though. This is OSS so feel free to contribute.

          Jakub Bochenski added a comment - There have been some similiar requests e.g. JENKINS-50455 and also some attempts at implementing it ( https://github.com/jenkinsci/logstash-plugin/pull/71 ). Nothing has been completed though. This is OSS so feel free to contribute.
          Jakub Bochenski made changes -
          Assignee Original: Jakub Bochenski [ jbochenski ]

            Unassigned Unassigned
            maxyko Maksym Yatsenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: