[.net] ElasticClient Bulk Operation issue

I am trying to use the .Net client to push the logs as bulk. I am getting 403, but for the same user single insertion works fine. Please let me know if I am missing any settings

Hi @Senthil_Kumar_N.H,

Can you post the settings that you use.

Thanks,
Igor

        var uri = ConnectionStringName.GetConnectionString() ?? Uri;

        var nodes = uri.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(url => new Uri(url));

        var connectionPool = new StaticConnectionPool(nodes);

        string userName = "senthil";
        string password = "***";

        IConnectionConfigurationValues config = new ConnectionConfiguration(connectionPool)
            .BasicAuthentication(userName, password);

        if (ElasticsearchSerializer != null)
            config = new ConnectionConfiguration(connectionPool, _ => ElasticsearchSerializer)
                .BasicAuthentication(userName, password);

        _client = new ElasticLowLevelClient(config);

connection string information:
http://7c903d***.us-east-1.aws.found.io:9200

From the cloud point of view the configuration seems fine. I've moved your question to the elasticsearch category, so I hope you're get a better .net related help there.

Thanks,
Igor

Hi @Senthil_Kumar_N.H

How are you sending bulk requests; could you post a succinct example?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.