If you wish to play with Elasticsearch and Kibana, what’s better than using a docker containers.

version: "3"

services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
    ports:
      - 9200:9200
      - 9300:9300
    environment:
      - "discovery.type=single-node"
    networks:
      - esnet
  kibana:
    image: docker.elastic.co/kibana/kibana:6.3.2
    environment:
      # - SERVER_NAME: kibana.example.org
      - ELASTICSEARCH_URL=http://elasticsearch:9200
    ports:
      - 5601:5601
    networks:
      - esnet

networks:
  esnet: