# Error while indexing data to App Search

**URL:** <https://discuss.elastic.co/t/error-while-indexing-data-to-app-search/262801>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [February 1, 2021, 8:45am UTC](https://discuss.elastic.co/t/error-while-indexing-data-to-app-search/262801 "2021-02-01T08:45:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanju1323](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@sanju1323](https://discuss.elastic.co/u/sanju1323)\
**Post date:** [February 1, 2021, 8:45am UTC](https://discuss.elastic.co/t/error-while-indexing-data-to-app-search/262801/1 "2021-02-01T08:45:11Z")

</div>

Hi Team,

I have been trying to index the data from local Elasticsearch cluster to App Search engine using logstash. But I'm getting the below error.

```auto
[2021-02-01T13:45:30,097][DEBUG][logstash.javapipeline][main] Pipeline terminated by worker error {:pipeline_id=>"main", :exception=>#<LogStash::ConfigurationError: Failed to connect to App Search. Error making http request>, :backtrace=>["C:/Users/local/logstash-7.8.1/vendor/bundle/jruby/2.5.0/gems/logstash-output-elastic_app_search-1.0.0/lib/logstash/outputs/elastic_app_search.rb:37:in `register'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:126:in `register'", "org/logstash/config/ir/compiler/AbstractOutputDelegatorExt.java:68:in `register'", "C:/Users/local/logstash-7.8.1/logstash-core/lib/logstash/java_pipeline.rb:226:in `block in register_plugins'", "org/jruby/RubyArray.java:1809:in `each'", "C:/Users/local/logstash-7.8.1/logstash-core/lib/logstash/java_pipeline.rb:225:in `register_plugins'", "C:/Users/local/logstash-7.8.1/logstash-core/lib/logstash/java_pipeline.rb:541:in `maybe_setup_out_plugins'", "C:/Users/local/logstash-7.8.1/logstash-core/lib/logstash/java_pipeline.rb:238:in `start_workers'", "C:/Users/local/logstash-7.8.1/logstash-core/lib/logstash/java_pipeline.rb:183:in `run'", "C:/Users/local/logstash-7.8.1/logstash-core/lib/logstash/java_pipeline.rb:134:in `block in start'"], "pipeline.sources"=>["c:/Users/local/logstash-7.8.1/bin/es-as-test.conf"], :thread=>"#<Thread:0x599df170 run>"}
[2021-02-01T13:45:30,142][ERROR][logstash.agent] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil}

```

Please find my configuration below.

```auto
    input {
        elasticsearch {
            hosts => ["localhost:9200"]
    		index => "poc_import"
    		query => '{"query": {"match_all": {}}}'
    		size => 10
        }
    }

    output {
    	elastic_app_search {
    		url => "appsearch.pks.test.com"
    		api_key => "private-4qqtesdfsdfsdfewergadryz"
    		engine => "sanjay"
    		path => "/api/as/v1/"
    	}
    }

```

Not sure why it is not able to make the HTTP request.  
Please help me in resolving this issue.

Thanks,  
Dharma Sanjay Reddy M.

---

<div class="post-metadata">

**Author:** ![Vadim\_Yakhin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vadim_yakhin/32/56723_2.png) [@Vadim\_Yakhin](https://discuss.elastic.co/u/Vadim_Yakhin)\
**Post date:** [February 2, 2021, 8:53pm UTC](https://discuss.elastic.co/t/error-while-indexing-data-to-app-search/262801/2 "2021-02-02T20:53:32Z")

</div>

Hi Sanjay,

The App Search team is not developing or supporting `logstash-output-elastic_app_search` plugin. [Logstash subforum](https://discuss.elastic.co/c/elastic-stack/logstash/14) would be a better place to get help with this issue.

---

<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:** [March 2, 2021, 8:54pm UTC](https://discuss.elastic.co/t/error-while-indexing-data-to-app-search/262801/3 "2021-03-02T20:54:21Z")

</div>

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