# Unable to create an Index and send logs to Elasticsearch from Logstash getting 404 error

**URL:** https://discuss.elastic.co/t/unable-to-create-an-index-and-send-logs-to-elasticsearch-from-logstash-getting-404-error/360657
**Category:** Logstash
**Created:** [June 1, 2024, 10:23am UTC](https://discuss.elastic.co/t/unable-to-create-an-index-and-send-logs-to-elasticsearch-from-logstash-getting-404-error/360657 "2024-06-01T10:23:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Guptha\_Bayyana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guptha_bayyana/32/124998_2.png) [@Guptha\_Bayyana](https://discuss.elastic.co/u/Guptha_Bayyana)
#### Post date: [June 1, 2024, 10:23am UTC](https://discuss.elastic.co/t/unable-to-create-an-index-and-send-logs-to-elasticsearch-from-logstash-getting-404-error/360657/1 "2024-06-01T10:23:52Z")

</div>

We are not able to create an Index on Elasticsearch using logstash. when I try the access indices I see 404 on the Elasticsearch

```auto
<{
  "error" : {
    "root_cause" : [
      {
        "type" : "index_not_found_exception",
        "reason" : "no such index [security_audit-log-ap]",
        "resource.type" : "index_or_alias",
        "resource.id" : "security_audit-log-ap",
        "index_uuid" : "_na_",
        "index" : "security_audit-log-ap"
      }
    ],
    "type" : "index_not_found_exception",
    "reason" : "no such index [security_audit-log-ap]",
    "resource.type" : "index_or_alias",
    "resource.id" : "security_audit-log-ap",
    "index_uuid" : "_na_",
    "index" : "security_audit-log-ap"
  },
  "status" : 404
}>

```

---

<div class="post-metadata">

### Author: ![Guptha\_Bayyana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guptha_bayyana/32/124998_2.png) [@Guptha\_Bayyana](https://discuss.elastic.co/u/Guptha_Bayyana)
#### Post date: [June 1, 2024, 10:40am UTC](https://discuss.elastic.co/t/unable-to-create-an-index-and-send-logs-to-elasticsearch-from-logstash-getting-404-error/360657/2 "2024-06-01T10:40:33Z")

</div>

below is the [this is the github link for our logstach configuration]`(https://github.com/bitsofinfo/logstash-modsecurity)`
