Elasticsearch

    Elasticsearch output plugin supports TTL/SSL, for more details about the properties available and general configuration, please refer to the TLS/SSL section.

    In order to insert records into a Elasticsearch service, you can run the plugin from the command line or through the configuration file:

    Using the format specified, you could start Fluent Bit through:

    1. $ fluent-bit -i cpu -t cpu -o es://192.168.2.3:9200/my_index/my_type \
    2. -o stdout -m '*'

    which is similar to do:

    In your main configuration file append the following Input & Output sections:

    1. [INPUT]
    2. Name cpu
    3. [OUTPUT]
    4. Name es
    5. Match *
    6. Port 9200
    7. Index my_index

    becomes

    1. {"cpu0_p_cpu"=>17.000000}

    Since Elasticsearch 6.0, you cannot create multiple types in a single index. This means that you cannot set up your configuration as below anymore.

    If you see an error message like below, you’ll need to fix your configuration to use a single type on each index.

    For details, please read .