Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs are not easily queryable from elasticsearch (ES6) #1382

Closed
sobvan opened this issue Feb 26, 2019 · 0 comments · Fixed by #1622
Closed

Logs are not easily queryable from elasticsearch (ES6) #1382

sobvan opened this issue Feb 26, 2019 · 0 comments · Fixed by #1622

Comments

@sobvan
Copy link

sobvan commented Feb 26, 2019

Requirement - what kind of business use case are you trying to solve?

I want to query logs as nested fields by using elastic's nested query

Problem - what in Jaeger blocks you from solving the requirement?

There is a missing "type": "nested" field in the elastic mapping for "log" filed of the span type.

Proposal - what do you suggest to solve the problem or improve the existing situation?

...
          "logs" : {
            "type" : "nested",
            "dynamic" : "false",
...

Notes for queryable logs

I used this query to search for logs:

GET jaeger-span-*/_search?filter_path=took,hits.hits._source
{
  "_source": ["logs.timestamp", "logs.fields.key", "logs.fields.tagType", "logs.fields.value"],
  "query": {
    "nested": {
      "path": "logs.fields",
      "query": {
        "bool": {
          "must_not": [
            {"wildcard": { "logs.fields.value": "anything*you*want" }}
            ]
        }
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants