Problems creating datasource elasticsearch

I installed elasticsearch 7.4 packetbeat 7.4 on ubuntu server 19.04
Then I installed grafana. the index created in elastic search is packetbeat-7.4.1-2019.10.28.000001.
The configuration is:
name: elasticsearch
url: http//localhost:9200
no autentication
index name: [packetbeat-*]YYYY.MM.DD.HH pattern: hourly

timefield name; @timestamp
version 7.0+

when I save and test I get an error 502
someone knows what I am doing wrong?

http// or http:// maybe wrong written but in any case

of course in the post I missed the :

curl “localhost:9200” returns ES json response?

curl give the following:

name" : “grafana”,
“cluster_name” : “elasticsearch”,
“cluster_uuid” : “ZEygu3DySye2Ng3cVoqpWg”,
“version” : {
“number” : “7.4.1”,
“build_flavor” : “default”,
“build_type” : “deb”,
“build_hash” : “fc0eeb6e2c25915d63d871d344e3d0b45ea0ea1e”,
“build_date” : “2019-10-22T17:16:35.176724Z”,
“build_snapshot” : false,
“lucene_version” : “8.2.0”,
“minimum_wire_compatibility_version” : “6.8.0”,
“minimum_index_compatibility_version” : “6.0.0-beta1”
“tagline” : “You Know, for Search”

And your access mode is by default (Server) or Browser?

is by default server

I did some tests and I’ve never seen 502 error. Which Grafana version do you use?

In 6.4 the problem is that Grafana expects 2019.10.28.01 and you have 2019.10.28.000001


Try this
index name: packetbeat-* pattern: no pattern