File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 1- journald- python
1+ python-systemd
22===============
33
4- Python module for native access to the journald facilities in recent
5- versions of systemd. In particular, this capability includes passing
6- key/value pairs as fields that journald can use for filtering.
4+ Python module for native access to the systemd facilities in recent versions
5+ of Fedora and other distributions. In particular, this capability includes
6+ passing key/value pairs as fields that the journal can display and use for
7+ filtering. There are also utilities to forward journal entries to aggregators
8+ like Graylog2 via GELF.
79
810Installation
911============
1012
11- On Fedora 17+:
13+ On Fedora 17+ with Python 2 :
1214
1315 sudo yum install git python-pip gcc python-devel systemd-devel
1416 pip-python install git+http://github.com/systemd/python-systemd.git#egg=systemd
1517
18+ On Fedora 17+ with Python 3:
19+
20+ sudo yum install git python3-pip gcc python3-devel systemd-devel
21+ pip-python3 install git+http://github.com/systemd/python-systemd.git#egg=systemd
22+
1623Usage
1724=====
1825
4350 printf-style substitution is not supported. Perform any
4451 substitution using Python's % operator or .format() capabilities
4552 first.
46- * The base message is usually sent in the form MESSAGE=hello. The
47- MESSAGE field is, however, not required.
4853 * A ValueError is thrown is thrown if sd_journald_sendv() results in
4954 an error. This might happen if there are no arguments or one of them
5055 is invalid.
You can’t perform that action at this time.
0 commit comments