# DataStream creates hidden indicas

**URL:** <https://discuss.elastic.co/t/datastream-creates-hidden-indicas/363347>\
**Category:** Elasticsearch\
**Created:** [July 18, 2024, 12:34pm UTC](https://discuss.elastic.co/t/datastream-creates-hidden-indicas/363347 "2024-07-18T12:34:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeyhun\_Rahimov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeyhun_rahimov/32/136139_2.png) [@Jeyhun\_Rahimov](https://discuss.elastic.co/u/Jeyhun_Rahimov)\
**Post date:** [July 18, 2024, 12:34pm UTC](https://discuss.elastic.co/t/datastream-creates-hidden-indicas/363347/1 "2024-07-18T12:34:49Z")

</div>

I use Elastic.Serilog.Sinks lib to send logs to Elastic with Serilog. This code sends logs to ES, but the created indexes are hidden. Why?

How can I set the index unhidden?  
How can I set the index format?

```auto
  public static void AddSerilog(this WebApplicationBuilder builder, IConfiguration configuration,
        string environment,
        string projectName)
    {
        var uri = configuration["Elasticsearch:Url"]!;

        Log.Logger = new LoggerConfiguration()
            .MinimumLevel.Debug()
            .Enrich.FromLogContext()
            .Enrich.WithElasticApmCorrelationInfo()
            .Enrich.WithProperty("Project", projectName)
            .Enrich.WithProperty("Environment", environment)
            .Enrich.WithProperty("Coder", "Jeyhun Rahimov")
            .WriteTo.Console(new EcsTextFormatter())
            .WriteTo.Elasticsearch(new[] { new Uri(uri) }, opts =>
            {
                opts.DataStream = new DataStreamName("logs", projectName.ToLower(), environment.ToLower());
                opts.TextFormatting = new EcsTextFormatterConfiguration();
                opts.BootstrapMethod = BootstrapMethod.Failure;
                opts.ConfigureChannel = channelOpts =>
                {
                    channelOpts.BufferOptions = new BufferOptions
                    {
                        ExportMaxConcurrency = 10
                    };
                };
            })
            .CreateLogger();

        builder.Logging.ClearProviders();
        builder.Host.UseSerilog(Log.Logger, true);
    }

```

it creates hidden index like:  
**.ds-logs-auth-development-2024.07.18-000001**

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [July 18, 2024, 12:44pm UTC](https://discuss.elastic.co/t/datastream-creates-hidden-indicas/363347/2 "2024-07-18T12:44:44Z")

</div>

Hello and welcome,

> [@Jeyhun\_Rahimov](#):
>
> This code sends logs to ES, but the created indexes are hidden. Why?

This is how datastreams works as described in the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html#backing-indices).

> A data stream consists of **one or more hidden, auto-generated backing indices**.

> [@Jeyhun\_Rahimov](#):
>
> How can I set the index unhidden?

I don't think you can, why you would want to do that?

> [@Jeyhun\_Rahimov](#):
>
> How can I set the index format?

Not clear what you mean with index format, can you provide more context?

---

<div class="post-metadata">

**Author:** ![Jeyhun\_Rahimov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeyhun_rahimov/32/136139_2.png) [@Jeyhun\_Rahimov](https://discuss.elastic.co/u/Jeyhun_Rahimov)\
**Post date:** [July 18, 2024, 12:52pm UTC](https://discuss.elastic.co/t/datastream-creates-hidden-indicas/363347/3 "2024-07-18T12:52:10Z")

</div>

Thanks for the quick response.  
I just wanted to make them unhidden. if it is not possible, it is ok. Thanks

By index format, I mean changing the name structure of the index:  
.ds-logs-auth-development-2024.07.18-000001  
remove the ".ds" part etc.

And last question:  
I have different spaces in Elastic: Demo1, Demo2.  
How can I send logs to a specific space, ie to Demo1?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [July 18, 2024, 1:00pm UTC](https://discuss.elastic.co/t/datastream-creates-hidden-indicas/363347/4 "2024-07-18T13:00:13Z")

</div>

> [@Jeyhun\_Rahimov](#):
>
> By index format, I mean changing the name structure of the index:  
> .ds-logs-auth-development-2024.07.18-000001  
> remove the ".ds" part etc.

That's also not possible, check the linked documentation about data streams, it explain how they work.

The `.ds-*` prefix is part of every data streams.

> [@Jeyhun\_Rahimov](#):
>
> I have different spaces in Elastic: Demo1, Demo2.  
> How can I send logs to a specific space, ie to Demo1?

Spaces are a Kibana concept, you do not send logs do spaces, you send your logs to Elasticsearch and then in Kibana you configure your Data Views and select in which spaces they are visible.

In your Kibana go to Stack Management \> Data Views you will be able to change in which space each data view will appear.
