# Buffer Options does not contain a definition for ConcurrentConsumers

**URL:** <https://discuss.elastic.co/t/buffer-options-does-not-contain-a-definition-for-concurrentconsumers/335371>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [June 6, 2023, 5:11pm UTC](https://discuss.elastic.co/t/buffer-options-does-not-contain-a-definition-for-concurrentconsumers/335371 "2023-06-06T17:11:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcos\_Ivan\_Robles\_H](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcos_ivan_robles_h/32/121557_2.png) [@Marcos\_Ivan\_Robles\_H](https://discuss.elastic.co/u/Marcos_Ivan_Robles_H)\
**Post date:** [June 6, 2023, 5:11pm UTC](https://discuss.elastic.co/t/buffer-options-does-not-contain-a-definition-for-concurrentconsumers/335371/1 "2023-06-06T17:11:23Z")

</div>

Hello I am trying to follow the example in the following nuget package:

[Elastic.Serilog.Sinks](https://www.nuget.org/packages/Elastic.Serilog.Sinks#readme-body-tab)

I got the following error:

Buffer Options does not contain a definition for ConcurrentConsumers

this is the code in program.cs (NET 6):

```auto
Log.Logger = (Serilog.ILogger)new LoggerConfiguration()
	.MinimumLevel.Debug()
	.Enrich.FromLogContext()
	.WriteTo.Elasticsearch(new[] { new Uri("http://localhost:9200") }, opts =>
	{
		opts.DataStream = new DataStreamName("logs", "console-example", "demo");
		opts.BootstrapMethod = BootstrapMethod.Failure;
		opts.ConfigureChannel = channelOpts =>
		{
			channelOpts.BufferOptions = new BufferOptions
			{
				ConcurrentConsumers = 10
			};

		};
	});

```

If I remove that property and run (It is just the default demo api about wheater)  
it throw this error:

Object reference not set to an instance of an object

Would someone help me?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 4, 2023, 5:12pm UTC](https://discuss.elastic.co/t/buffer-options-does-not-contain-a-definition-for-concurrentconsumers/335371/2 "2023-07-04T17:12:17Z")

</div>

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