public void createIndex(final String indexName) {
        try {
            client.indices().create(c -> c.index(indexName));
        } catch (IOException e) {
            LogUtils.error(LOG, "create index error:", e);
        }
    }
@Test
    public void testCreateIndex() {
        ElasticSearchLogCollectConfig.INSTANCE.setElasticSearchLogConfig(elasticSearchLogConfig);
        elasticSearchLogCollectClient.initClient(elasticSearchLogConfig);
        elasticSearchLogCollectClient.createIndex("test");
    }