With this fix and following config, events are redirected to the file ~~~ - file:///home/centos/events?max_bytes=10000000&backup_count=5&json ~~~
~~~ [centos@ykulkarn-devstack-centos ~]$ tail events -n 2 {"name": "memory.resident", "type": "gauge", "unit": "MB", "volume": 242.5859375, "user_id": "a55a62d37dd94ca0b6d6b8ceb7aec390", "user_name": "admin", "project_id": "e40fb942b14845e99cea267ebe55a643", "project_name": "admin", "resource_id": "3f5b8dd8-05f4-4dd7-9cfc-b3034a320568", "timestamp": "2023-08-25T10:49:14.628663", "resource_metadata": {"display_name": "cirros", "name": "instance-00000002", "instance_id": "3f5b8dd8-05f4-4dd7-9cfc-b3034a320568", "instance_type": "m1.tiny", "host": "e19e9d9d5a98502e2427ff3527f4415d3b564a3f6a3803ab0d639bce", "instance_host": "ykulkarn-devstack-centos", "flavor": {"id": "1", "name": "m1.tiny", "vcpus": 1, "ram": 512, "disk": 1, "ephemeral": 0, "swap": 0}, "status": "active", "state": "running", "task_state": "", "image": {"id": "a7b1b30f-d9e6-439b-b99c-868dcd16d8d3"}, "image_ref": "a7b1b30f-d9e6-439b-b99c-868dcd16d8d3", "image_ref_url": null, "architecture": "x86_64", "os_type": "hvm", "vcpus": 1, "memory_mb": 512, "disk_gb": 1, "ephemeral_gb": 0, "root_gb": 1}, "source": "openstack", "id": "08489502-4335-11ee-89d2-fa163e89283e", "monotonic_time": null} {"name": "memory.resident", "type": "gauge", "unit": "MB", "volume": 238.0703125, "user_id": "dc06c2d219624a2682c10498c67638f9", "user_name": "alt_demo", "project_id": "0f86dc6181ac476c965e7fc99b9fe563", "project_name": "alt_demo", "resource_id": "cbf94dea-564d-4419-bbbe-a13a0a763d2e", "timestamp": "2023-08-25T10:49:14.628663", "resource_metadata": {"display_name": "cirros1-alt", "name": "instance-00000003", "instance_id": "cbf94dea-564d-4419-bbbe-a13a0a763d2e", "instance_type": "m1.tiny", "host": "2d82e77501ddc492b73bea2d19508db19057b502903af24fdc849d35", "instance_host": "ykulkarn-devstack-centos", "flavor": {"id": "1", "name": "m1.tiny", "vcpus": 1, "ram": 512, "disk": 1, "ephemeral": 0, "swap": 0}, "status": "active", "state": "running", "task_state": "", "image": {"id": "a7b1b30f-d9e6-439b-b99c-868dcd16d8d3"}, "image_ref": "a7b1b30f-d9e6-439b-b99c-868dcd16d8d3", "image_ref_url": null, "architecture": "x86_64", "os_type": "hvm", "vcpus": 1, "memory_mb": 512, "disk_gb": 1, "ephemeral_gb": 0, "root_gb": 1}, "source": "openstack", "id": "0848f510-4335-11ee-89d2-fa163e89283e", "monotonic_time": null} [centos@ykulkarn-devstack-centos ~]$ ~~~
With this fix and following config, events are redirected to the file /home/centos/ events? max_bytes= 10000000& backup_ count=5& json
~~~
- file://
~~~
~~~ ykulkarn- devstack- centos ~]$ tail events -n 2 a0b6d6b8ceb7aec 390", "user_name": "admin", "project_id": "e40fb942b14845 e99cea267ebe55a 643", "project_name": "admin", "resource_id": "3f5b8dd8- 05f4-4dd7- 9cfc-b3034a3205 68", "timestamp": "2023-08- 25T10:49: 14.628663" , "resource_ metadata" : {"display_name": "cirros", "name": "instance- 00000002" , "instance_id": "3f5b8dd8- 05f4-4dd7- 9cfc-b3034a3205 68", "instance_type": "m1.tiny", "host": "e19e9d9d5a9850 2e2427ff3527f44 15d3b564a3f6a38 03ab0d639bce" , "instance_host": "ykulkarn- devstack- centos" , "flavor": {"id": "1", "name": "m1.tiny", "vcpus": 1, "ram": 512, "disk": 1, "ephemeral": 0, "swap": 0}, "status": "active", "state": "running", "task_state": "", "image": {"id": "a7b1b30f- d9e6-439b- b99c-868dcd16d8 d3"}, "image_ref": "a7b1b30f- d9e6-439b- b99c-868dcd16d8 d3", "image_ref_url": null, "architecture": "x86_64", "os_type": "hvm", "vcpus": 1, "memory_mb": 512, "disk_gb": 1, "ephemeral_gb": 0, "root_gb": 1}, "source": "openstack", "id": "08489502- 4335-11ee- 89d2-fa163e8928 3e", "monotonic_time": null} 2682c10498c6763 8f9", "user_name": "alt_demo", "project_id": "0f86dc6181ac47 6c965e7fc99b9fe 563", "project_name": "alt_demo", "resource_id": "cbf94dea- 564d-4419- bbbe-a13a0a763d 2e", "timestamp": "2023-08- 25T10:49: 14.628663" , "resource_ metadata" : {"display_name": "cirros1-alt", "name": "instance- 00000003" , "instance_id": "cbf94dea- 564d-4419- bbbe-a13a0a763d 2e", "instance_type": "m1.tiny", "host": "2d82e77501ddc4 92b73bea2d19508 db19057b502903a f24fdc849d35" , "instance_host": "ykulkarn- devstack- centos" , "flavor": {"id": "1", "name": "m1.tiny", "vcpus": 1, "ram": 512, "disk": 1, "ephemeral": 0, "swap": 0}, "status": "active", "state": "running", "task_state": "", "image": {"id": "a7b1b30f- d9e6-439b- b99c-868dcd16d8 d3"}, "image_ref": "a7b1b30f- d9e6-439b- b99c-868dcd16d8 d3", "image_ref_url": null, "architecture": "x86_64", "os_type": "hvm", "vcpus": 1, "memory_mb": 512, "disk_gb": 1, "ephemeral_gb": 0, "root_gb": 1}, "source": "openstack", "id": "0848f510- 4335-11ee- 89d2-fa163e8928 3e", "monotonic_time": null} ykulkarn- devstack- centos ~]$
[centos@
{"name": "memory.resident", "type": "gauge", "unit": "MB", "volume": 242.5859375, "user_id": "a55a62d37dd94c
{"name": "memory.resident", "type": "gauge", "unit": "MB", "volume": 238.0703125, "user_id": "dc06c2d219624a
[centos@
~~~