[.net] ElasticClient Bulk Operation issue


(Senthil Kumar N H) #1

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


(Igor Kupczyński) #2

Hi @Senthil_Kumar_N.H,

Can you post the settings that you use.

Thanks,
Igor


(Senthil Kumar N H) #3
        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


(Igor Kupczyński) #4

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


(Russ Cam) #5

Hi @Senthil_Kumar_N.H

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


(system) #6

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