Indices name Can't use IP?

I did a test to create index:

Add Index

PUT /access.log.2020.04.07/_doc/1
{
"domain":"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",
"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

Welcome to our community! :smiley:

I just tried this on 7.11.1;

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

Response;

{
  "_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
}
GET _cat/indices/access.log.*?v

Response;

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?

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