Feature #26278
Add ability to get console messages to API
Description
We need to get an API to get console messages.
Please take old site as reference.
For example,
<ip address>/system/varlogmessages/
This API will just return 3 error messages.
<ip address>/system/varlogmessages/500
This API will returen 500 error messages.
Related issues
Associated revisions
History
#1
Updated by William Grzybowski about 3 years ago
- Status changed from Unscreened to Screened
- Priority changed from No priority to Nice to have
#2
Updated by William Grzybowski about 3 years ago
- Blocks Feature #23137: Make System Advanced feature complete added
#3
Updated by William Grzybowski about 3 years ago
- Status changed from Screened to Needs Developer Review
- Assignee changed from William Grzybowski to Vladimir Vinogradenko
#4
Updated by Vladimir Vinogradenko about 3 years ago
- Status changed from Needs Developer Review to Reviewed by Developer
- Assignee changed from Vladimir Vinogradenko to William Grzybowski
#5
Updated by William Grzybowski about 3 years ago
- Status changed from Reviewed by Developer to Ready For Release
Daisuke, event subscription for file has been implemented, use 'filesystem.file_tail_follow' subscription:
root@freenas:~ # midclt subscribe filesystem.file_tail_follow:/var/log/messages ADDED {'msg': 'added', 'collection': 'filesystem.file_tail_follow:/var/log/messages', 'fields': {'data': "Oct 24 16:59:15 freenas /middlewared: [aiohttp.websocket:430] websocket connection is closing.\nOct 24 19:54:28 freenas devd: notify_clients: send() failed; dropping unresponsive client\nOct 24 19:56:11 freenas /alert.py: [system.alert:370] Alert module '<samba4.Samba4Alert object at 0x81749a9e8>' failed: [Errno 61] Connection refused\n"}}
root@freenas:~ # midclt subscribe filesystem.file_tail_follow:/var/log/messages:10
ADDED {'msg': 'added', 'collection': 'filesystem.file_tail_follow:/var/log/messages:10', 'fields': {'data': "Oct 24 16:40:36 freenas /alert.py: [system.alert:370] Alert module '<update_check.UpdateCheckAlert object at 0x815fd3a58>' failed: [Errno 61] Connection refused\nOct 24 16:41:36 freenas /alert.py: [system.alert:370] Alert module '<samba4.Samba4Alert object at 0x81749a9e8>' failed: [Errno 61] Connection refused\nOct 24 16:41:36 freenas /alert.py: [system.alert:370] Alert module '<update_check.UpdateCheckAlert object at 0x815fd3a58>' failed: [Errno 61] Connection refused\nOct 24 16:42:36 freenas /alert.py: [system.alert:370] Alert module '<samba4.Samba4Alert object at 0x81749a9e8>' failed: [Errno 61] Connection refused\nOct 24 16:42:36 freenas /alert.py: [system.alert:370] Alert module '<update_check.UpdateCheckAlert object at 0x815fd3a58>' failed: [Errno 61] Connection refused\nOct 24 16:43:36 freenas /alert.py: [system.alert:370] Alert module '<samba4.Samba4Alert object at 0x81749a9e8>' failed: [Errno 61] Connection refused\nOct 24 16:43:36 freenas /alert.py: [system.alert:370] Alert module '<update_check.UpdateCheckAlert object at 0x815fd3a58>' failed: [Errno 61] Connection refused\nOct 24 16:59:15 freenas /middlewared: [aiohttp.websocket:430] websocket connection is closing.\nOct 24 19:54:28 freenas devd: notify_clients: send() failed; dropping unresponsive client\nOct 24 19:56:11 freenas /alert.py: [system.alert:370] Alert module '<samba4.Samba4Alert object at 0x81749a9e8>' failed: [Errno 61] Connection refused\n"}}
#6
Updated by Dru Lavigne about 3 years ago
- Subject changed from Getting Console messages to Add ability to get console messages to API
#7
Updated by Dru Lavigne about 3 years ago
- Target version changed from 11.1 to 11.1-RC1
#8
Updated by Daisuke Imai about 3 years ago
- Blocks deleted (Feature #23137: Make System Advanced feature complete)
#9
Updated by Daisuke Imai about 3 years ago
- Related to Feature #23137: Make System Advanced feature complete added
#10
Updated by Dru Lavigne about 3 years ago
- Status changed from Ready For Release to Resolved
#11
Updated by Joe Maloney about 3 years ago
- Needs QA changed from Yes to No
- QA Status deleted (
Not Tested)