# Can't figure out how to wildcard fields

**URL:** <https://discuss.elastic.co/t/cant-figure-out-how-to-wildcard-fields/245106>\
**Category:** Kibana\
**Created:** [August 15, 2020, 9:24pm UTC](https://discuss.elastic.co/t/cant-figure-out-how-to-wildcard-fields/245106 "2020-08-15T21:24:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rhysyrhys](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rhysyrhys/32/46637_2.png) [@Rhysyrhys](https://discuss.elastic.co/u/Rhysyrhys)\
**Post date:** [August 15, 2020, 9:24pm UTC](https://discuss.elastic.co/t/cant-figure-out-how-to-wildcard-fields/245106/1 "2020-08-15T21:24:07Z")

</div>

Hi, I have my Celery workers reporting their status to Kibana via logstash. When I get a snapshot the document Kibana receives is similar to this truncated doc:

```json
{
  "tasks_total_processed": 2,
  "worker_count": 2,
  "worker_load_average": 0.92,
  "workers": {
    "celery4": {
      "stats": {
        "processes": 1,
        ...
      }
    },
  "celery5": {
    "stats": {
      "processes": 9,
      ....
    }
  }
}
}

```

I want to write a time series visualization of the number of processes for each of my celery workers and for a new a line to be added when I add a new celery worker automatically.

In other tools I might've written something that counts `workers.*.stats.processes` and gotten a line for `celery4`, `celery5` and `celeryN` and so forth. How do I achieve this in Kibana??

---

<div class="post-metadata">

**Author:** ![mikecote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikecote/32/58549_2.png) [@mikecote](https://discuss.elastic.co/u/mikecote)\
**Post date:** [August 19, 2020, 1:22pm UTC](https://discuss.elastic.co/t/cant-figure-out-how-to-wildcard-fields/245106/2 "2020-08-19T13:22:44Z")

</div>

Hi @Rhysyrhys,

If you change the data structure to something like

```auto
{
   "@timestamp": { "type": "date" },
   "name": { "type": "keyword" },
   "processes": { "type": "number" }
}

```

you will be able to have a line per worker automatically. This would also require a document per worker instead of a single document containing all the values. The top fields `tasks_total_processed`, `worker_count` and `worker_load_average` can also be calculated within the visualizations if necessary.

You can then use timelion with an expression like:

```auto
.es(index=mypattern*,split=name.keyword:10)

```

---

<div class="post-metadata">

**Author:** ![Rhysyrhys](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rhysyrhys/32/46637_2.png) [@Rhysyrhys](https://discuss.elastic.co/u/Rhysyrhys)\
**Post date:** [August 19, 2020, 9:27pm UTC](https://discuss.elastic.co/t/cant-figure-out-how-to-wildcard-fields/245106/3 "2020-08-19T21:27:55Z")

</div>

Hi Mike,

Thanks for the reply, I figured the shape thing out and have nicely working graphs now!

Best,

Rhys

---

<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:** [September 16, 2020, 9:27pm UTC](https://discuss.elastic.co/t/cant-figure-out-how-to-wildcard-fields/245106/4 "2020-09-16T21:27:57Z")

</div>

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