# Failed action with response of 500, dropping action Logstash1.5.4

**URL:** <https://discuss.elastic.co/t/failed-action-with-response-of-500-dropping-action-logstash1-5-4/33502>\
**Category:** Logstash\
**Created:** [November 2, 2015, 10:46am UTC](https://discuss.elastic.co/t/failed-action-with-response-of-500-dropping-action-logstash1-5-4/33502 "2015-11-02T10:46:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NgocPham](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ngocpham/32/6242_2.png) [@NgocPham](https://discuss.elastic.co/u/NgocPham)\
**Post date:** [November 2, 2015, 10:46am UTC](https://discuss.elastic.co/t/failed-action-with-response-of-500-dropping-action-logstash1-5-4/33502/1 "2015-11-02T10:46:57Z")

</div>

Hi everybody, im newbie and i try use logstash, elasticsearch to  
Search in my Web. One error appear and i dont know how to fix it.  
Pls help me , thanks you!  
i tried config file .conf look like this ,it work normal , my databse appear in my plugin /head

# file: simple-out.conf

input {  
jdbc {  
jdbc\_connection\_string =\> "jdbc:postgresql://localhost:5432/Test"  
jdbc\_user =\> "postgres"  
jdbc\_password =\>"lovely19"  
jdbc\_validate\_connection =\> true  
jdbc\_driver\_library =\> "/home/ngocpt/Downloads/postgresql-9.4-1202.jdbc4.jar"  
jdbc\_driver\_class =\> "org.postgresql.Driver"  
statement =\> "SELECT \* from users"  
}  
}  
output {  
elasticsearch {  
protocol =\> http  
index =\> "users"  
document\_type =\> "user"  
document\_id =\> "%{id}"  
host =\> "localhost"  
}  
}

But after i tried mapping one field with analyzer before run logstash index database, i get error.  
my mapping look like this:  
curl -XPUT "[http://localhost:9200/users/](http://localhost:9200/users/)" -d'  
{  
"mappings": {  
"user": {  
"properties": {  
"password" : {  
"analyzer" : "vi\_analyzer",  
"type" : "string"  
},  
"user\_name" : {  
"analyzer" : "vi\_analyzer",  
"type" : "string"  
}  
}  
}  
}  
}'

Here is my error

failed  
action with response of 500, dropping action: ["index", {:\_id=\>81,  
:\_index=\>"users", :\_type=\>"user", :\_routing=\>nil},  
#\<LogStash::Event:0x6080f83f @metadata\_accessors=#\<LogStash::Util::Accessors:0xa36e532  
@store={"retry\_count"=\>0}, @lut={}\>, @cancelled=false,  
@data={"id"=\>81, "user\_name"=\>"dong ho", "password"=\>"dong ho",  
"sex"=\>"male", "photo\_id"=\>1, "@version"=\>"1",  
"@timestamp"=\>"2015-11-02T10:40:21.245Z"}, @metadata={"retry\_count"=\>0}, @accessors=#\<LogStash::Util::Accessors:0xb7502dc  
@store={"id"=\>81, "user\_name"=\>"dong ho", "password"=\>"dong  
ho", "sex"=\>"male", "photo\_id"=\>1, "@version"=\>"1",  
"@timestamp"=\>"2015-11-02T10:40:21.245Z"},  
@lut={"id"=\>[{"id"=\>81, "user\_name"=\>"dong ho",  
"password"=\>"dong ho", "sex"=\>"male", "photo\_id"=\>1,  
"@version"=\>"1", "@timestamp"=\>"2015-11-02T10:40:21.245Z"}, "id"]}\>\>] {:level=\>:warn}

Thanks for your help

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 2, 2015, 12:05pm UTC](https://discuss.elastic.co/t/failed-action-with-response-of-500-dropping-action-logstash1-5-4/33502/2 "2015-11-02T12:05:24Z")

</div>

The Elasticsearch logs probably contain additional clues.

---

<div class="post-metadata">

**Author:** ![NgocPham](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ngocpham/32/6242_2.png) [@NgocPham](https://discuss.elastic.co/u/NgocPham)\
**Post date:** [November 3, 2015, 2:00am UTC](https://discuss.elastic.co/t/failed-action-with-response-of-500-dropping-action-logstash1-5-4/33502/3 "2015-11-03T02:00:10Z")

</div>

maybe error in analyzer ~~  
i use elastic 1.7.3 , and analyzer sp 1.7+...  
error elasticslog in this 😄

[2015-11-03 08:50:06,826][DEBUG][action.bulk] [Angelica Jones] [users][4] failed to execute bulk item (index) index {[users][user][77], source[{"id":77,"user\_name":"viet nam","password":"viet nam","sex":"female","photo\_id":6,"@version":"1","@timestamp":"2015-11-03T01:49:42.702Z"}]}  
java.lang.NullPointerException  
at org.apache.lucene.analysis.vi.VietnameseTokenizer.(VietnameseTokenizer.java:74)  
at org.apache.lucene.analysis.vi.VietnameseTokenizer.(VietnameseTokenizer.java:62)  
at org.apache.lucene.analysis.vi.VietnameseAnalyzer.createComponents(VietnameseAnalyzer.java:83)  
at org.apache.lucene.analysis.AnalyzerWrapper.createComponents(AnalyzerWrapper.java:113)  
at org.apache.lucene.analysis.AnalyzerWrapper.createComponents(AnalyzerWrapper.java:113)  
at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:182)  
at org.apache.lucene.document.Field.tokenStream(Field.java:554)  
at org.apache.lucene.index.DefaultIndexingChain$PerField.invert(DefaultIndexingChain.java:611)  
at org.apache.lucene.index.DefaultIndexingChain.processField(DefaultIndexingChain.java:359)  
at org.apache.lucene.index.DefaultIndexingChain.processDocument(DefaultIndexingChain.java:318)  
at org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:241)  
at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:465)  
at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1526)  
at org.elasticsearch.index.engine.InternalEngine.innerIndex(InternalEngine.java:441)  
at org.elasticsearch.index.engine.InternalEngine.index(InternalEngine.java:364)  
at org.elasticsearch.index.shard.IndexShard.index(IndexShard.java:511)  
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:413)  
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:148)  
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$PrimaryPhase.performOnPrimary(TransportShardReplicationOperationAction.java:574)  
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$PrimaryPhase$1.doRun(TransportShardReplicationOperationAction.java:440)  
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)

---

<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:** [July 6, 2017, 5:24am UTC](https://discuss.elastic.co/t/failed-action-with-response-of-500-dropping-action-logstash1-5-4/33502/4 "2017-07-06T05:24:27Z")

</div>


