{"action":"created","issue":{"url":"https://api.github.com/repos/olivere/elastic/issues/385","repository_url":"https://api.github.com/repos/olivere/elastic","labels_url":"https://api.github.com/repos/olivere/elastic/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/olivere/elastic/issues/385/comments","events_url":"https://api.github.com/repos/olivere/elastic/issues/385/events","html_url":"https://github.com/olivere/elastic/issues/385","id":187546569,"number":385,"title":"Bulk ingest failing with BasicAuth","user":{"login":"blacktop","id":6118188,"avatar_url":"https://avatars.githubusercontent.com/u/6118188?v=3","gravatar_id":"","url":"https://api.github.com/users/blacktop","html_url":"https://github.com/blacktop","followers_url":"https://api.github.com/users/blacktop/followers","following_url":"https://api.github.com/users/blacktop/following{/other_user}","gists_url":"https://api.github.com/users/blacktop/gists{/gist_id}","starred_url":"https://api.github.com/users/blacktop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blacktop/subscriptions","organizations_url":"https://api.github.com/users/blacktop/orgs","repos_url":"https://api.github.com/users/blacktop/repos","events_url":"https://api.github.com/users/blacktop/events{/privacy}","received_events_url":"https://api.github.com/users/blacktop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-06T07:17:50Z","updated_at":"2016-11-06T22:19:18Z","closed_at":null,"body":"Please use the following questions as a guideline to help me answer\r\nyour issue/question without further inquiry. Thank you.\r\n\r\n### Which version of Elastic are you using?\r\n\r\n[ ] elastic.v2 (for Elasticsearch 1.x)\r\n[ ] elastic.v3 (for Elasticsearch 2.x)\r\n[x] elastic.v5 (for Elasticsearch 5.x)\r\n\r\n### Please describe the expected behavior\r\n\r\nTo index the data\r\n\r\n### Please describe the actual behavior\r\n\r\nNo data is indexed\r\n\r\n### Any steps to reproduce the behavior?\r\n\r\nhttps://github.com/blacktop/docker-es-demo-data/blob/master/5.0/main.go\r\n\r\n```bash\r\n$ docker run -d --name elastic -p 9200:9200 blacktop/elasticsearch:x-pack\r\n$ docker run -d --name kibana --link elastic:elasticsearch -p 5601:5601 blacktop/kibana:x-pack\r\n$ docker run --rm --link elastic:elasticsearch -e ES_USERNAME=elastic -e ES_PASSWORD=changeme blacktop/es-data\r\n```"},"comment":{"url":"https://api.github.com/repos/olivere/elastic/issues/comments/258715474","html_url":"https://github.com/olivere/elastic/issues/385#issuecomment-258715474","issue_url":"https://api.github.com/repos/olivere/elastic/issues/385","id":258715474,"user":{"login":"blacktop","id":6118188,"avatar_url":"https://avatars.githubusercontent.com/u/6118188?v=3","gravatar_id":"","url":"https://api.github.com/users/blacktop","html_url":"https://github.com/blacktop","followers_url":"https://api.github.com/users/blacktop/followers","following_url":"https://api.github.com/users/blacktop/following{/other_user}","gists_url":"https://api.github.com/users/blacktop/gists{/gist_id}","starred_url":"https://api.github.com/users/blacktop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blacktop/subscriptions","organizations_url":"https://api.github.com/users/blacktop/orgs","repos_url":"https://api.github.com/users/blacktop/repos","events_url":"https://api.github.com/users/blacktop/events{/privacy}","received_events_url":"https://api.github.com/users/blacktop/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T22:19:18Z","updated_at":"2016-11-06T22:19:18Z","body":"So when I run it I get the following:\r\n\r\n```bash\r\n~ ❯❯❯ docker run --rm --link elastic:elasticsearch -e ES_USERNAME=elastic -e ES_PASSWORD=changeme blacktop/es-data\r\nUsing username: elastic and password: changeme\r\nCreating index: nginx_json_elastic_stack_example\r\nUnzip archive  /nginx_data\r\nAdding template: nginx_json_elastic_stack_example\r\nAdding ingest pipeline: nginx-pipeline\r\nThis Bulk Requests is 16 MB.\r\nImport directory  /nginx_data/nginx-dashboard/index-pattern\r\nImport index to /.kibana/index-pattern/nginx_json_elastic_stack_example from /nginx_data/nginx-dashboard/index-pattern/nginx_json_elastic_stack_example.json\r\nImport directory  /nginx_data/nginx-dashboard/dashboard\r\nImport dashboard  /nginx_data/nginx-dashboard/dashboard/Sample-Dashboard-for-Nginx-(JSON)-Logs.json\r\nImport vizualization  /nginx_data/nginx-dashboard/visualization/Nginx-Dashboard-json.json\r\nImport vizualization  /nginx_data/nginx-dashboard/visualization/Traffic-vs.-Location-json.json\r\nImport vizualization  /nginx_data/nginx-dashboard/visualization/Unique-Visits-json.json\r\nImport vizualization  /nginx_data/nginx-dashboard/visualization/Total-Requests-by-City-json.json\r\nImport vizualization  /nginx_data/nginx-dashboard/visualization/Traffic-by-Country-ampersand-OS.json\r\nImport vizualization  /nginx_data/nginx-dashboard/visualization/Total-Requests-json.json\r\nImport vizualization  /nginx_data/nginx-dashboard/visualization/Bytes-vs.-Time-json.json\r\nImport vizualization  /nginx_data/nginx-dashboard/visualization/Non-200-Response-Code-vs.-Time-json.json\r\n```\r\nHowever, it seems that nothing was indexed into the newly created `nginx_json_elastic_stack_example` index as can be seen here:\r\n```bash\r\n~ ❯❯❯ http -a elastic:changeme :9200/nginx_json_elastic_stack_example\r\nHTTP/1.1 200 OK\r\ncontent-encoding: gzip\r\ncontent-type: application/json; charset=UTF-8\r\ntransfer-encoding: chunked\r\n\r\n{\r\n    \"nginx_json_elastic_stack_example\": {\r\n        \"aliases\": {},\r\n        \"mappings\": {},\r\n        \"settings\": {\r\n            \"index\": {\r\n                \"creation_date\": \"1478470490972\",\r\n                \"number_of_replicas\": \"1\",\r\n                \"number_of_shards\": \"5\",\r\n                \"provided_name\": \"nginx_json_elastic_stack_example\",\r\n                \"uuid\": \"0v66zHRGTpS3aryseCPbSQ\",\r\n                \"version\": {\r\n                    \"created\": \"5000099\"\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n```"}}
{"actor":{"display_login":"blacktop"}}