Skip to content

Last access time for database or collection #37496

Discussion options

You must be logged in to vote

You can try access log: https://milvus.io/docs/configure_access_logs.md#Configure-Access-Logs

You can configure it in the milvus.yaml:

proxy:
  accessLog:
    enable: true
    filename: "milvus-access.log"
    localPath: "/tmp/milvus"

With this configuration, the /tmp/milvus/milvus-access.log is generated inside the milvus container, you can map the path outside the container, or enter the container to read it.

You can know which interface is called by which client. Access log of search/query request tells which database and which collection is accessed.

For example, an access log of a search request:
[2024/11/07 07:11:24.048 +00:00] [ACCESS] <Unknown: tcp-172.22.0.1:46194> Search [statu…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vasudevabhat
Comment options

@huangxueliang
Comment options

@yhmo
Comment options

Answer selected by vasudevabhat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants