Skip to content

ELS publisher fails when publishing arrays with different types #129

@BrunoBonacci

Description

@BrunoBonacci

from Slack conversation https://clojurians.slack.com/archives/C03J782P329/p1737574229809269

from Nim Sadeh

Hey me again. Wondering if there are any tips for setting up structured logging with OpenSearch/ElasticSearch? I keep getting errors because of the dynamic nature of the structured logs. It's a bit unpredictable, so every day I squash a few, it works, then I get a new one.
For example, yesterday it complained about having periods in certain field names, so I put this dynamic template on:

{
  "dynamic_templates": [
    {
      "dots_as_keywords": {
        "path_match": ".*\\..*",
        "match_pattern": "regex",
        "mapping": {
          "type": "keyword"
        }
      }
    }
  ],
  "properties": {}
}

Today I am getting the error:

"illegal_argument_exception", :reason "mapper [info.o.trace.a] cannot be changed from type [long] to [text]"}}})}  

I'm wondering if there's a standard configuration that just works with mulog

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions