trevorndodds / elasticsearch-metrics

102 stars 99 forks source link

No data displayed, fails to load cluster or node name #15

Closed esseti closed 6 years ago

esseti commented 7 years ago

Hello,

all the dashboard is read, so no data is loaded. there are many errors, this is one

    "root_cause": [
        {
            "type": "parse_exception",
            "reason": "parse_exception: Encountered \"\" at line 1, column 13.\nWas expecting one of:\n     ...\n    \"(\" ...\n    \"*\" ...\n     ...\n     ...\n     ...\n     ...\n     ...\n    \"[\" ...\n    \"{\" ...\n     ...\n    "
        },
        {
            "type": "parse_exception",
            "reason": "parse_exception: Encountered \"\" at line 1, column 13.\nWas expecting one of:\n     ...\n    \"(\" ...\n    \"*\" ...\n     ...\n     ...\n     ...\n     ...\n     ...\n    \"[\" ...\n    \"{\" ...\n     ...\n    "
        }
    ],
    "type": "search_phase_execution_exception",
    "reason": "all shards failed",
    "phase": "query",
    "grouped": true,
    "failed_shards": [
        {
            "shard": 0,
            "index": "graylog_0",
            "node": "qX82JCzNQFyLACYz8s60zA",
            "reason": {
                "type": "query_parsing_exception",
                "reason": "Failed to parse query [cluster_name:]",
                "index": "graylog_0",
                "line": 1,
                "col": 195,
                "caused_by": {
                    "type": "parse_exception",
                    "reason": "parse_exception: Cannot parse 'cluster_name:': Encountered \"\" at line 1, column 13.\nWas expecting one of:\n     ...\n    \"(\" ...\n    \"*\" ...\n     ...\n     ...\n     ...\n     ...\n     ...\n    \"[\" ...\n    \"{\" ...\n     ...\n    ",
                    "caused_by": {
                        "type": "parse_exception",
                        "reason": "parse_exception: Encountered \"\" at line 1, column 13.\nWas expecting one of:\n     ...\n    \"(\" ...\n    \"*\" ...\n     ...\n     ...\n     ...\n     ...\n     ...\n    \"[\" ...\n    \"{\" ...\n     ...\n    "
                    }
                }
            }
        },
        {
            "shard": 0,
            "index": "graylog_1",
            "node": "qX82JCzNQFyLACYz8s60zA",
            "reason": {
                "type": "query_parsing_exception",
                "reason": "Failed to parse query [cluster_name:]",
                "index": "graylog_1",
                "line": 1,
                "col": 195,
                "caused_by": {
                    "type": "parse_exception",
                    "reason": "parse_exception: Cannot parse 'cluster_name:': Encountered \"\" at line 1, column 13.\nWas expecting one of:\n     ...\n    \"(\" ...\n    \"*\" ...\n     ...\n     ...\n     ...\n     ...\n     ...\n    \"[\" ...\n    \"{\" ...\n     ...\n    ",
                    "caused_by": {
                        "type": "parse_exception",
                        "reason": "parse_exception: Encountered \"\" at line 1, column 13.\nWas expecting one of:\n     ...\n    \"(\" ...\n    \"*\" ...\n     ...\n     ...\n     ...\n     ...\n     ...\n    \"[\" ...\n    \"{\" ...\n     ...\n    "
                    }
                }
            }
        }
    ]
}   

this is the templating image

what could it be?

trevorndodds commented 7 years ago

I assume elasticsearch 2? try remove .raw and see if you see any thing in the template view? - depends on your clustername though.

rr-paras-patel commented 7 years ago

I have similar issue with elasticsearch 2.4.1

rr-paras-patel commented 7 years ago

@esseti add following line into your elasticsearch cluster node and restart elasticsearch It will solve your issue because for Direct access : If you select direct access you must update your Elasticsearch configuration to allow other domains to access Elasticsearch from the browser. You do this by specifying these to options in your elasticsearch.yml config file.

http.cors.enabled: true
http.cors.allow-origin: "*"

image