# Simple compound search in Kibana

**URL:** <https://discuss.elastic.co/t/simple-compound-search-in-kibana/72353>\
**Category:** Kibana\
**Created:** [January 20, 2017, 11:21pm UTC](https://discuss.elastic.co/t/simple-compound-search-in-kibana/72353 "2017-01-20T23:21:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elastimed](https://avatars.discourse-cdn.com/v4/letter/e/7cd45c/32.png) [@elastimed](https://discuss.elastic.co/u/elastimed)\
**Post date:** [January 20, 2017, 11:21pm UTC](https://discuss.elastic.co/t/simple-compound-search-in-kibana/72353/1 "2017-01-20T23:21:27Z")

</div>

When in Kibana I enter say (src\_ip=10.3.25.23 AND dest\_port=22) and click search - I get back syslog entries ehter dst\_ip is 10.3.25.23 and 22 will be in there as say a an ethernet switch port number - but not the TCP destination port. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [January 23, 2017, 11:35am UTC](https://discuss.elastic.co/t/simple-compound-search-in-kibana/72353/2 "2017-01-23T11:35:54Z")

</div>

Hi @elastimed,

you might have more success with `src_ip:10.3.25.23 AND dest_port:22`. Please see the [Query String Syntax Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax) for other search operators.

You might also want to double-check that your `src_ip` and `dest_port` fields are [indexed using the correct types](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html), i.e. `ip` and `integer`. If the `src_ip` field has been indexed as a `text`, the analyzer might have incorrectly broken down the ip address. Indexing the fields using the correct types also enables other useful type-specific features in the query such as [CIDR ranges](https://www.elastic.co/guide/en/elasticsearch/reference/current/ip.html#_querying_literal_ip_literal_fields) or [numeric ranges](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#_ranges).

---

<div class="post-metadata">

**Author:** ![elastimed](https://avatars.discourse-cdn.com/v4/letter/e/7cd45c/32.png) [@elastimed](https://discuss.elastic.co/u/elastimed)\
**Post date:** [January 24, 2017, 11:52pm UTC](https://discuss.elastic.co/t/simple-compound-search-in-kibana/72353/3 "2017-01-24T23:52:35Z")

</div>

Yes yes! Gawd this was driving me nuts. Thank you.

---

<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:** [February 21, 2017, 11:52pm UTC](https://discuss.elastic.co/t/simple-compound-search-in-kibana/72353/4 "2017-02-21T23:52:46Z")

</div>

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