question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with analytics when using ES OSS

See original GitHub issue

Describe the bug I have deployed DataHub using managed ElasticSearch in AWS and for some reason Analytics is not working (http://localhost:9002/analytics).

To Reproduce Steps to reproduce the behavior:

  1. Go to ‘https://datahubproject.io/docs/quickstart/
  2. Use ‘https://github.com/datahub-project/datahub/blob/master/docker/quickstart/docker-compose-without-neo4j-m1.quickstart.yml
  3. Change ES image to ‘https://www.docker.elastic.co/r/elasticsearch/elasticsearch-oss:7.9.3’ + USE_AWS_ELASTICSEARCH=true
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Screenshot 2022-07-12 at 10 12 17 AM

Additional context ES: managed ES OSS in AWS

{
  "name" : "123qwe123qwe",
  "cluster_name" : "blahblahblah",
  "cluster_uuid" : "123we123qwe",
  "version" : {
    "number" : "7.10.2",
    "build_flavor" : "oss",
    "build_type" : "tar",
    "build_hash" : "unknown",
    "build_date" : "2022-02-10T09:41:23.620550Z",
    "build_snapshot" : false,
    "lucene_version" : "8.7.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

PostgreSQL: PostgreSQL 14.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44), 64-bit DataHub: v0.8.40

Logs: tmpnqxgvxye.log

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
tomas-kubincommented, Jul 12, 2022

Hello @murzindima, I have encountered a similar issue. This is my workaround. Please let me know if it helped you. If so, I will submit a possible fix so that the workaround is not needed anymore.

Workaround

  • Go to Kibana console (link should be available in AWS OpenSearch domain detail.)
  • Execute the following three queries one by one. Maybe some of the will fail. If so, please let me know:
PUT _template/datahub_usage_event_index_template
{
  "index_patterns": ["datahub_usage_event-*"],
  "mappings": {
    "properties": {
      "@timestamp": {
        "type": "date"
      },
      "type": {
        "type": "keyword"
      },
      "timestamp": {
        "type": "date"
      },
      "userAgent": {
        "type": "keyword"
      },
      "browserId": {
        "type": "keyword"
      }
    }
  },
  "settings": {
    "index.opendistro.index_state_management.rollover_alias": "datahub_usage_event"
  }
}

DELETE datahub_usage_event

PUT datahub_usage_event-000001
{
  "aliases": {
    "datahub_usage_event": {
      "is_write_index": true
    }
  }
}
1reaction
anshbansalcommented, Jul 25, 2022

@tomas-kubin If you do make a contribution that would be great. Please head to #contribute channel in slack in case you need any help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions - OpenSearch
1.3 Why should I use OpenSearch? ... OpenSearch enables people to easily ingest, secure, search, aggregate, view, and analyze data. These capabilities have...
Read more >
Elasticsearch: The Official Distributed Search & Analytics Engine
Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases. As the heart of the...
Read more >
Analysis and Detection of Information Types of Open Source ...
In this paper, we address this challenge by identifying the information types presented in OSS issue discus- sions. Through qualitative content ...
Read more >
The Complete Guide to the ELK Stack - Logz.io
The Logz.io authoritative guide to the ELK Stack that shows the best practices for installation, monitoring, logging and log analysis.
Read more >
Amazon OpenSearch Service
Securely unlock real-time search, monitoring, and analysis of business and operational data · Increase operational excellence by using a popular open source ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found