# Exact mongo query not coming in packet beats

**URL:** <https://discuss.elastic.co/t/exact-mongo-query-not-coming-in-packet-beats/187304>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [June 25, 2019, 10:41am UTC](https://discuss.elastic.co/t/exact-mongo-query-not-coming-in-packet-beats/187304 "2019-06-25T10:41:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhimanyu\_Nagrath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhimanyu_nagrath/32/48724_2.png) [@Abhimanyu\_Nagrath](https://discuss.elastic.co/u/Abhimanyu_Nagrath)\
**Post date:** [June 25, 2019, 10:41am UTC](https://discuss.elastic.co/t/exact-mongo-query-not-coming-in-packet-beats/187304/1 "2019-06-25T10:41:33Z")

</div>

Hi I have a mongo 4.0 (config(27018), shard(27021) and monogos(27017) running on the same machine) with SSL enabled. I have enabled packetbeat 6.7 on the server . Rest all stats look fine . But in top 10 slow queries I am getting query name like : admin.$cmd.otherCommand(),  
config.$cmd.otherCommand()

Any help how I will get the exact query name?

---

<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:** [July 23, 2019, 10:41am UTC](https://discuss.elastic.co/t/exact-mongo-query-not-coming-in-packet-beats/187304/2 "2019-07-23T10:41:34Z")

</div>

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