Comments (3)
another way is to use systemd $XDG_SESSION_ID, or call 'sd_pid_get_session(my_pid, &session)', which would grab something from systemd, similar to /proc/self/sesionid, whose value would show up in the same position of 'loginctl session-status' output.
from tlog.
Using a systemd login-related session ID as fallback for the session
field if /proc/self/sessionID
is unavailable seems reasonable to me, the downside being it would not help for systems which are not using systemd.
from tlog.
At least it would help out those folks working with systemd-enabled Linux hosts where auditd is disabled.
from tlog.
Related Issues (20)
- Fedora RPM package adoption HOT 1
- Covscan fixes
- regression since Jan 2021 breaks ansible HOT 8
- SSH command with closed stdin doesn't work
- Ansible pipelining breaks with tlog HOT 4
- Playing back from Elasticsearch HOT 1
- HOW to get TLOG working in Ubuntu/Debian!????? HOT 6
- journal gets flooded when using cockpit with ssh session on remote hosts HOT 1
- how to ensure security when tlog is integrated with elasticsearch HOT 4
- Gather a set of records HOT 3
- Failed creating lock file HOT 2
- [Question] What's the difference between `in_txt` and `out_txt` fields in `tlog.log` file? HOT 2
- [Question] how to setup tlog to log to elasticsearch HOT 14
- tlog report question
- Why is the programming name of the tlog being logged different? HOT 1
- tlog-play: Option missing to list available users/sessions in log
- tlog redirects stderr to stdout, breaking automated/advanced usage
- How to watch all recordings via one vm
- LONG_MAX is not the maximum value of 64-bit time_t on 32 bit systems (e.g. ARMv7) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tlog.