Skip to content

Specifying not_analyzed for additional fields #41

Open
@mcantrell

Description

@mcantrell

The default type for string additional fields is analyzed. Is there a way to register the type for the additional fields?

For instance, we register additional fields to track the host:

   def customFields = [
           "host": InetAddress.getLocalHost().getHostName()
   ]
   def reporter = ElasticsearchReporter.forRegistry(registry)
           .hosts(hosts)
           .additionalFields(customFields)
           .build()

Our host names have a naming convention which separates the number of the instance:

  • api-01
  • api-02
  • etc..

This causes a split in the analyzed fields (api, 01, 02) when trying to visualize the data in kibana.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions