Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
Tags
- rsyslog
- 디렉토리
- zabbix
- Audit Log
- Linux
- 빅데이터
- Chrome
- docker
- K8S
- log
- GPU
- Kubernetes
- C
- CentOS
- RHEL
- yum
- Elk
- Python
- audit
- bash
- 크롬
- syslog
- Shell
- 서울시민카드
- centos 7.5
- GNOME
- JSON
- PostgreSQL
- Elasticsearch
- 파이썬
Archives
- Today
- Total
목록syslog (2)
Sysops Notepad
[linux] bash 명령어 기록 rsyslog에 기록하기
1. vi /etc/bash.bashrc export PROMPT_COMMAND='RETRN_VAL=$?;logger -p local6.debug "$(whoami) [$$]: $(history 1 | sed "s/^[ ]*[0-9]\+[ ]*//" ) [$RETRN_VAL]"' 2. vi /etc/rsyslog.d/bash.conf local6.* /var/log/commands.log template(name="json-template"type="list") {constant(value="{")constant(value="\"@timestamp\":\"") property(name="timereported" dateFormat="rfc3339")constant(value="\",\"@version\"..
업무/etc
2019. 2. 11. 20:27