Insight types are incorrect

Solution Verified - Updated -

Issue

  • These fields are a measure of the time difference(in milliseconds) and it's defined with a type 'dateOptionalTime' in the mapping of the insight index:
        MaxProcessingTime
        MeanProcessingTime
        MinProcessingTime
        TotalProcessingTime

Below the output of the mapping:

$ curl http://10.36.117.56:9200/insight-2017.09.01/_mapping/sta-camel/ | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1864  100  1864    0     0  1317k      0 --:--:-- --:--:-- --:--:-- 1820k
{
  "insight-2017.09.01": {
    "mappings": {
      "sta-camel": {
        "dynamic_templates": [
          {
            "integers": {
              "mapping": {
                "type": "long"
              },
              "match": ".*(Exchanges|Failures|Redeliveries).*",
              "match_mapping_type": "string",
              "match_pattern": "regex"
            }
          },
          {
            "date": {
              "mapping": {
                "type": "date"
              },
              "match": ".*(Time(?!rName)|Date).*",
              "match_mapping_type": "string",
              "match_pattern": "regex"
            }
          },
          {
            "string_fields": {
              "mapping": {
                "index": "analyzed",
                "omit_norms": true,
                "type": "string",
                "fields": {
                  "raw": {
                    "ignore_above": 9216,
                    "index": "not_analyzed",
                    "type": "string"
                  }
                }
              },
              "match": "*",
              "match_mapping_type": "string"
            }
          }
        ],
        "properties": {
          "@timestamp": {
            "type": "date",
            "format": "dateOptionalTime"
          },
          "@version": {
            "type": "string",
            "index": "not_analyzed"
          },
          "geoip": {
            "dynamic": "true",
            "properties": {
              "location": {
                "type": "geo_point"
              }
            }
          },
          "host": {
            "type": "string",
            "norms": {
              "enabled": false
            },
            "fields": {
              "raw": {
                "type": "string",
                "index": "not_analyzed",
                "ignore_above": 9216
              }
            }
          },
          "log-example-context": {
            "properties": {
              "routes": {
                "properties": {
                  "log-route": {
                    "properties": {
                      "ExchangesCompleted": {
                        "type": "long"
                      },
                      "ExchangesFailed": {
                        "type": "long"
                      },
                      "ExchangesTotal": {
                        "type": "long"
                      },
                      "ExternalRedeliveries": {
                        "type": "long"
                      },
                      "FailuresHandled": {
                        "type": "long"
                      },
                      "InflightExchanges": {
                        "type": "long"
                      },
                      "Load01": {
                        "type": "string",
                        "norms": {
                          "enabled": false
                        },
                        "fields": {
                          "raw": {
                            "type": "string",
                            "index": "not_analyzed",
                            "ignore_above": 9216
                          }
                        }
                      },
                      "Load05": {
                        "type": "string",
                        "norms": {
                          "enabled": false
                        },
                        "fields": {
                          "raw": {
                            "type": "string",
                            "index": "not_analyzed",
                            "ignore_above": 9216
                          }
                        }
                      },
                      "Load15": {
                        "type": "string",
                        "norms": {
                          "enabled": false
                        },
                        "fields": {
                          "raw": {
                            "type": "string",
                            "index": "not_analyzed",
                            "ignore_above": 9216
                          }
                        }
                      },
                      "MaxProcessingTime": {
                        "type": "date",
                        "format": "dateOptionalTime"
                      },
                      "MeanProcessingTime": {
                        "type": "date",
                        "format": "dateOptionalTime"
                      },
                      "MinProcessingTime": {
                        "type": "date",
                        "format": "dateOptionalTime"
                      },
                      "Redeliveries": {
                        "type": "long"
                      },
                      "TotalProcessingTime": {
                        "type": "date",
                        "format": "dateOptionalTime"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Environment

  • Red Hat JBoss Fuse
    • 6.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In