Tyk pump with elasticsearch 5+

Hi, i have problems with elasticsearch 5+ and pump. It works fine with elasticsearch version 2+, but when i change to the new version occurs the following error:

Elasticsearch connection failed: no Elasticsearch node available

This is my pump.conf:

    "analytics_storage_type": "redis",
    "analytics_storage_config": {
        "type": "redis",
        "host": "localhost",
        "port": 6379,
        "hosts": null,
        "username": "",
        "password": "",
        "database": 0,
        "optimisation_max_idle": 100,
        "optimisation_max_active": 0,
        "enable_cluster": false
    "purge_delay": 10,
    "pumps": {
        "elasticsearch": {
            "name": "elasticsearch",
            "meta": {
                "index_name": "tyk_analytics",
                "elasticsearch_url": "",
                "enable_sniffing": true,
                "document_type": "tyk_analytics",
                "rolling_index": false,
                "extended_stats": false,
                "version": "5"
    "dont_purge_uptime_data": true

Can you guys help me? i’m using the community version.

What version of Tyk Pump do you use?

ElasticSearch 5 support was added recently Upgrade to support Elasticsearch 5 by miles-b · Pull Request #22 · TykTechnologies/tyk-pump · GitHub

I’m using version 0.4.2

I think the issue is TCP vs HTTP for ES, I think only HTTP is supported

We couldn’t make ES version 5+ work, so we decide to use version 2+.

Thanks for the help