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

[Security Solution] Fix host details query when missing IP #78912

Merged

Conversation

patrykkopycinski
Copy link
Contributor

Summary

Error

{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "encoded bytes are of incorrect length"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "encoded bytes are of incorrect length",
    "caused_by" : {
      "type" : "unknown_host_exception",
      "reason" : "addr is of illegal length"
    }
  },
  "status" : 400
}

Query

GET _search
{
    "aggregations": {
      "host_ip": {
        "terms": {
          "field": "host.ip",
          "size": 10,
          "order": {
            "timestamp": "desc"
          }
        },
        "aggs": {
          "timestamp": {
            "max": {
              "field": "@timestamp"
            }
          }
        }
      }
    },
    "query": {
      "bool": {
        "filter": [
          {
            "term": {
              "host.name": "siem-kibana"
            }
          },
          {
            "range": {
              "@timestamp": {
                "format": "strict_date_optional_time",
                "gte": "2020-09-29T07:25:51.161Z",
                "lte": "2020-09-30T07:25:51.161Z"
              }
            }
          }
        ]
      }
    }
}

Solution
elastic/elasticsearch#27788

Checklist

@patrykkopycinski patrykkopycinski added bug Fixes for quality problems that affect the customer experience release_note:fix Team:SIEM v8.0.0 v7.10.0 labels Sep 30, 2020
@patrykkopycinski patrykkopycinski self-assigned this Sep 30, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

@patrykkopycinski
Copy link
Contributor Author

@elasticmachine merge upstream

@patrykkopycinski
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

FrankHassanabad added a commit that referenced this pull request Apr 27, 2021
## Summary

Adds dev documentation about a painless script in our code and when we could remove it. See:
elastic/elasticsearch#72276
#78912
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 27, 2021
## Summary

Adds dev documentation about a painless script in our code and when we could remove it. See:
elastic/elasticsearch#72276
elastic#78912
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 27, 2021
## Summary

Adds dev documentation about a painless script in our code and when we could remove it. See:
elastic/elasticsearch#72276
elastic#78912
kibanamachine added a commit that referenced this pull request Apr 27, 2021
## Summary

Adds dev documentation about a painless script in our code and when we could remove it. See:
elastic/elasticsearch#72276
#78912

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
kibanamachine added a commit that referenced this pull request Apr 27, 2021
## Summary

Adds dev documentation about a painless script in our code and when we could remove it. See:
elastic/elasticsearch#72276
#78912

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Sep 23, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience release_note:fix Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants