# Using wildcards on large string values doesn't returns any document

**URL:** <https://discuss.elastic.co/t/using-wildcards-on-large-string-values-doesnt-returns-any-document/157313>\
**Category:** Elasticsearch\
**Created:** [November 19, 2018, 9:18am UTC](https://discuss.elastic.co/t/using-wildcards-on-large-string-values-doesnt-returns-any-document/157313 "2018-11-19T09:18:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![solarwinds](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/solarwinds/32/37390_2.png) [@solarwinds](https://discuss.elastic.co/u/solarwinds)\
**Post date:** [November 19, 2018, 9:18am UTC](https://discuss.elastic.co/t/using-wildcards-on-large-string-values-doesnt-returns-any-document/157313/1 "2018-11-19T09:18:30Z")

</div>

I believe that my issue is related to Elasticsearch itself, so I will post my question here. If this is more appropriate for another topic, I will move it.

I have a Kafka process that I am monitoring and I am not able to search for it using Kibana DSL. Specific value is in **system.process.cmdline** field.

I am using following query to search for all Java processes on specific machine (in last 15 minutes):

`system.process.name: java AND beat.hostname: ip-xx-xx-xx-xx.ec2.internal AND system.process.cmdline: /.*java.`\*/, however, this query never returns the document with the Kafka process.

Complete string is more than 4096 characters long, and I have adjusted the mapping in metric beat as the process was never visible in ES (Kibana).

If I am usinthe g following query, document is never returned:

`system.process.name: java AND beat.hostname: ip-xx-xx-xx-xx.ec2.internal AND system.process.cmdline: /.*kafka.Kafka.*/`.

Complete process cmdline is pasted [here](https://pastebin.com/RDcAQ1ph).

How can I query for this process? Is it possible that process is not indexed? Or my wildcard query is wrong?

---

<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:** [December 17, 2018, 9:18am UTC](https://discuss.elastic.co/t/using-wildcards-on-large-string-values-doesnt-returns-any-document/157313/2 "2018-12-17T09:18:38Z")

</div>

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