# Elasticsearch illegal argument exception

**URL:** <https://discuss.elastic.co/t/elasticsearch-illegal-argument-exception/134028>\
**Category:** Elasticsearch\
**Created:** [May 31, 2018, 10:49am UTC](https://discuss.elastic.co/t/elasticsearch-illegal-argument-exception/134028 "2018-05-31T10:49:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![clash\_of\_clanss](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@clash\_of\_clanss](https://discuss.elastic.co/u/clash_of_clanss)\
**Post date:** [May 31, 2018, 10:49am UTC](https://discuss.elastic.co/t/elasticsearch-illegal-argument-exception/134028/1 "2018-05-31T10:49:18Z")

</div>

Hi,

I am new to elasticsearch concept. I am using ELK (Elasticsearch,Logstash,kibana).

Logstash Config

input {  
file {  
path =\> "test.log"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
}  
}  
filter {  
grok {  
match =\> { "message" =\>  
"(?[\d\s\w\s\d\s\d:\d:\d]+),\d\d\d\s(?[[\w]]+)\s(?[\w-\w-\w-\w-\w]+)\s"}  
}  
}

```
 output {
    elasticsearch {
        hosts =>
        ["localhost:9200"]
        index => "test_log"
        }
        stdout
        {
            codec=>rubydebug
         }
}

```

And the problem is, when I am trying to run this command,  
localhost:9200/test\_log/\_search?pretty' -d '  
{  
"query": { "match\_all": {} }  
}'

It throws this error,  
{  
"error" : {  
"root\_cause" : [  
{  
"type" : "illegal\_argument\_exception",  
"reason" : "maxConcurrentShardRequests must be \>= 1"  
}  
],  
"type" : "illegal\_argument\_exception",  
"reason" : "maxConcurrentShardRequests must be \>= 1"  
},  
"status" : 400  
}

I don't know how to solve this error, anyone knows please share with me.  
Thanks.

---

<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:** [June 28, 2018, 10:49am UTC](https://discuss.elastic.co/t/elasticsearch-illegal-argument-exception/134028/2 "2018-06-28T10:49:30Z")

</div>

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