Logstash fails to report buils to Elasticsearch 2 if a buildVariable contain dot in the name

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major
    • Component/s: logstash-plugin
    • None

      Elasticsearch 2 does not support dots in field names. However, it's a perfectly valid case on Windows. Java system properties also may contain dots.

      If such variable appears in the logstash plugin, it just fails to report the entire build. In my case it is "com.apple.java.jvmTask" on Mac

      {
        "data": {
          "id": "40",
          "projectName": "TestLogstash",
          "displayName": "#40",
          "fullDisplayName": "TestLogstash #40",
          "url": "job/TestLogstash/40/",
          "buildHost": "remoteSlave",
          "buildLabel": "master",
          "buildNum": 40,
          "buildDuration": 33,
          "rootProjectName": "TestLogstash",
          "rootProjectDisplayName": "#40",
          "rootBuildNum": 40,
          "buildVariables": {
            "PATH": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",
            "JAVA_ARCH": "x86_64",
           .....
            "__CF_USER_TEXT_ENCODING": "0x1F6:0x0:0x0",
            "com.apple.java.jvmTask": "CommandLine",
            "LC_CTYPE": "UTF-8",
            "HOME": "/Users/nenashev",
            "SHLVL": "1"
          },
          "sensitiveBuildVariables": [
            "FOO"
          ]
        },
        "message": [
          "+ echo 'Hello, world! Password is BAR'"
        ],
        "source": "jenkins",
        "source_host": "http://localhost:8080/jenkins/",
        "@timestamp": "2016-09-16T14:29:01-0700",
        "@version": 1
      }
      

            Assignee:
            Unassigned
            Reporter:
            Oleg Nenashev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: