# Indices name Can't use IP?

**URL:** <https://discuss.elastic.co/t/indices-name-cant-use-ip/267439>\
**Category:** Elasticsearch\
**Created:** [March 17, 2021, 3:30am UTC](https://discuss.elastic.co/t/indices-name-cant-use-ip/267439 "2021-03-17T03:30:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jun\_li](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jun_li/32/77545_2.png) [@jun\_li](https://discuss.elastic.co/u/jun_li)\
**Post date:** [March 17, 2021, 3:30am UTC](https://discuss.elastic.co/t/indices-name-cant-use-ip/267439/1 "2021-03-17T03:30:41Z")

</div>

I did a test to create index:

# Add Index

PUT /access.log.2020.04.07/\_doc/1  
{  
"domain":"[www.amazon.com](http://www.amazon.com)",  
"status":200  
}

#There is no problem when I query this index, GET \_cat/indices  
yellow open access.log.2020.04.07 t\_IYm\_OFQqmx83ObV4Bodw 5 1 1 0 4.5kb 4.5kb

But If my index name contains IP：  
PUT /access.log.192.168.10.7/\_doc/1  
{  
"domain":"[www.amazon.com](http://www.amazon.com)",  
"status":200  
}  
#GET \_cat/indices  
yellow open access.log.x.x.x.x r3Iut699QPqO4awkTwpn4g 5 1 1 0 6.9kb 6.9kb

Why does the index name become x.x.x.x?

But the index name displayed in kibana is normal

Has anyone encountered this situation? I tested it with ES 6.X and 7.X version,All have this kind of problem

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 22, 2021, 2:02am UTC](https://discuss.elastic.co/t/indices-name-cant-use-ip/267439/2 "2021-03-22T02:02:22Z")

</div>

Welcome to our community! 😃

I just tried this on 7.11.1;

```auto
PUT /access.log.192.168.10.7/_doc/1
{
"domain":"www.amazon.com",
"status":200
}

```

Response;

```auto
{
  "_index" : "access.log.192.168.10.7",
  "_type" : "_doc",
  "_id" : "1",
  "_version" : 1,
  "result" : "created",
  "_shards" : {
    "total" : 2,
    "successful" : 1,
    "failed" : 0
  },
  "_seq_no" : 0,
  "_primary_term" : 1
}

```

```auto
GET _cat/indices/access.log.*?v

```

Response;

```auto
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open access.log.192.168.10.7 8RO3hpV_QXaRBcFw3cqqpw 1 1 1 0 4kb 4kb

```

What is the response when you post your second `PUT`?

---

<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:** [April 19, 2021, 2:02am UTC](https://discuss.elastic.co/t/indices-name-cant-use-ip/267439/3 "2021-04-19T02:02:29Z")

</div>

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