# Logstash elastic\_app\_search output plugin returning 404 page

**URL:** <https://discuss.elastic.co/t/logstash-elastic-app-search-output-plugin-returning-404-page/370097>\
**Category:** Logstash\
**Created:** [November 5, 2024, 10:44pm UTC](https://discuss.elastic.co/t/logstash-elastic-app-search-output-plugin-returning-404-page/370097 "2024-11-05T22:44:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brad-g](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brad-g/32/46604_2.png) [@brad-g](https://discuss.elastic.co/u/brad-g)\
**Post date:** [November 5, 2024, 10:44pm UTC](https://discuss.elastic.co/t/logstash-elastic-app-search-output-plugin-returning-404-page/370097/1 "2024-11-05T22:44:31Z")

</div>

I have used Logstash to pass documents to App Search since 2022, but after a recent Elasticsearch update (to 8.15) my `systemctl` logs are showing a 404 error, with the html for this page returned in the response:

 ![Screen Shot 2024-11-05 at 5.38.28 PM](https://us1.discourse-cdn.com/elastic/original/3X/3/b/3bcb0c1d7e562ba6bfece402187ab3e19875c1ae.png)

This is my current output plugin for app search:

```auto
output {
  elastic_app_search {
    url => "https://xxxxxxxx.ent.us-central1.gcp.cloud.es.io/api/as/v1"
    api_key => "xxxxxxxx"

    document_id => "%{video_url}-%{segment}"
    engine => "minutes-2022-09-09"
  }

  # for testing, print to std out
  stdout { codec => rubydebug }
}

```

I have used the same credentials in a test python script, which does work:

```auto
from elastic_app_search import Client

client = Client(
    base_endpoint="xxxxxxxx.ent.us-central1.gcp.cloud.es.io/api/as/v1",
    api_key="xxxxxxxx"
)

engine_name = "minutes-meta"
query = "bikes"
response = client.search(engine_name, query)
print(response)

```

Which api endpoint and credential set do I need to use now that App Search is under the Kibana umbrella? Why can I access app search via the same API when using the python client, but the Logstash plugin is redirected to the 404 page?

Any help appreciated, thanks!!
