# Packebeat 7.1 mysql select duration

**URL:** <https://discuss.elastic.co/t/packebeat-7-1-mysql-select-duration/206728>\
**Category:** Beats\
**Created:** [November 6, 2019, 5:43am UTC](https://discuss.elastic.co/t/packebeat-7-1-mysql-select-duration/206728 "2019-11-06T05:43:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![meng\_liu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/meng_liu/32/45610_2.png) [@meng\_liu](https://discuss.elastic.co/u/meng_liu)\
**Post date:** [November 6, 2019, 5:43am UTC](https://discuss.elastic.co/t/packebeat-7-1-mysql-select-duration/206728/1 "2019-11-06T05:43:33Z")

</div>

I use beats 7.1 to minitor mysql, when the method is select, we found the event not have the duration, and that the start and end is reverse.

```auto
    "@timestamp":"2019-11-06T04:40:21.168Z",
    "@metadata":{
        "beat":"packetbeat",
        "type":"_doc",
        "version":"7.1.0"
    },
    "status":"OK",
    "event":{
        "dataset":"mysql",
        "start":"2019-11-06T04:40:21.168Z", //start
        "end":"2019-11-06T04:40:21.167Z", //end is reverse
        "kind":"event",
        "category":"network_traffic"
    },
    "destination":{
        "bytes":3245,
        "ip":"192.168.1.17",
        "port":3306
    },
    "ecs":{
        "version":"1.0.0"
    },
    "query":"select server.containerName containerName, server.status status,bd1.code system,bd2.code subSystem from (dbaasContainer server inner join basicData bd1 on server.businessSystemId=bd1.id) inner join basicData bd2 on server.subBusinessSystemId=bd2.id",
    "server":{
        "port":3306,
        "bytes":3245,
        "ip":"192.168.1.17"
    },
    "method":"SELECT",
    "client":{
        "ip":"192.168.1.31",
        "port":49646,
        "bytes":253
    },
    "network":{
        "bytes":3498,
        "type":"ipv4",
        "transport":"tcp",
        "protocol":"mysql",
        "direction":"inbound",
        "community_id":"1:GIPf9ADPszdhVKg1wJH/vTKP8LQ="
    },
    "fields":{
        "TOPICS__":"upsql",
        "ip":"192.168.1.17"
    },
    "mysql":{
        "num_rows":41,
        "num_fields":20,
        "affected_rows":0,
        "insert_id":0
    },
    "type":"mysql",
    "path":"., utf8.utf8",
    "source":{
        "bytes":253,
        "ip":"192.168.1.31",
        "port":49646
    },
    "host":{
        "name":"host17"
    },
    "agent":{
        "type":"packetbeat",
        "ephemeral_id":"0fb8006c-1b89-4bc4-8c6b-065a44b83389",
        "hostname":"host17",
        "id":"c1c9594d-b766-451e-901c-1090872b750d",
        "version":"7.1.0"
    }
}

```

---

<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 4, 2019, 7:43am UTC](https://discuss.elastic.co/t/packebeat-7-1-mysql-select-duration/206728/2 "2019-12-04T07:43:45Z")

</div>

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