# Kibana: show logs with a specifc field name value only

**URL:** https://discuss.elastic.co/t/kibana-show-logs-with-a-specifc-field-name-value-only/267773
**Category:** Kibana
**Tags:** docker
**Created:** [March 19, 2021, 9:27am UTC](https://discuss.elastic.co/t/kibana-show-logs-with-a-specifc-field-name-value-only/267773 "2021-03-19T09:27:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![h\_q](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/h_q/32/85793_2.png) [@h\_q](https://discuss.elastic.co/u/h_q)
#### Post date: [March 19, 2021, 9:27am UTC](https://discuss.elastic.co/t/kibana-show-logs-with-a-specifc-field-name-value-only/267773/1 "2021-03-19T09:27:13Z")

</div>

I started ingesting Kubernetes logs into ElasticSearch, using the [Filebeat Input Container](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-container.html):  
`Filebeat -> Logstash -> ElasticSearch`

My `filebeat.yml` looks like this:

```auto
- type: container
  paths:
    - /var/lib/docker/containers/*/*.log
  fields:
    logs_type: "k8s"
  fields_under_root: true
  multiline.type: pattern
  multiline.pattern: '^[[:space:]]+(at|\.{3})[[:space:]]+\b|^Caused by:'
  multiline.negate: false
  multiline.match: after

processors:
- add_docker_metadata:
    host: "unix:///var/run/docker.sock"

output:
  logstash:
    enabled: True
    hosts:
      - logstash1:5043
      - logstash2:5043
    loadbalance: true

```

How can I format a Kibana URL to show logs for a specific field name? For example: `container.labels.io_kubernetes_container_name` = `my-k8s-app`

```
http://kibana:5601/app/discover#/?_g=()&options=(container.labels.io_kubernetes_container_name:"my-k8s-app")
```

---

<div class="post-metadata">

### Author: ![poff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/poff/32/81795_2.png) [@poff](https://discuss.elastic.co/u/poff)
#### Post date: [March 19, 2021, 4:27pm UTC](https://discuss.elastic.co/t/kibana-show-logs-with-a-specifc-field-name-value-only/267773/2 "2021-03-19T16:27:25Z")

</div>

Hey there!

I'm not sure there's a great way to filter Kibana globally through the URL but if you're working in Discover, you can set a filter for the `container.labels.io_kubernetes_container_name` to equal `my-k8s-app` and then save your search. Once you've saved your search, you can get "Share" and generate a URL that will contain your container\_name search filter

---

<div class="post-metadata">

### Author: ![h\_q](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/h_q/32/85793_2.png) [@h\_q](https://discuss.elastic.co/u/h_q)
#### Post date: [March 21, 2021, 3:46pm UTC](https://discuss.elastic.co/t/kibana-show-logs-with-a-specifc-field-name-value-only/267773/3 "2021-03-21T15:46:36Z")

</div>

Thank you @poff  
Your solution serves the purpose.

It would’ve been nice to customize the URL to cater for different applications, but I can easily create filters and share URLs.

Kind regards.

---

<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: [April 18, 2021, 3:46pm UTC](https://discuss.elastic.co/t/kibana-show-logs-with-a-specifc-field-name-value-only/267773/4 "2021-04-18T15:46:45Z")

</div>

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