]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal-remote: make --url option support arbitrary url
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 24 Jan 2016 06:45:47 +0000 (15:45 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 24 Jan 2016 06:45:47 +0000 (15:45 +0900)
commitb68f6b0a794f9e6cb6457a0ac55041c4e7b1a5cb
tree5850c54ef1f07c80b32435646470b4b6947abf89
parent9d5a981398accce14ce0e824122c6748728b4631
journal-remote: make --url option support arbitrary url

Currently, --url option supports the only form like http(s)://some.host:19531.
This commit adds support to call systemd-journal-remote as follwos:
systemd-journal-remote --url='http://some.host:19531'
systemd-journal-remote --url='http://some.host:19531/'
systemd-journal-remote --url='http://some.host:19531/entries'
systemd-journal-remote --url='http://some.host:19531/entries?boot&follow'
The first three example result the same and retrieve all entries.
The last example retrieves only current boot entries and wait new events.
src/journal-remote/journal-remote.c