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
- centos 7.5
- Audit Log
- audit
- 크롬
- Elasticsearch
- JSON
- C
- K8S
- Python
- PostgreSQL
- GNOME
- 빅데이터
- Elk
- zabbix
- syslog
- yum
- rsyslog
- 서울시민카드
- bash
- GPU
- docker
- Linux
- Shell
- CentOS
- log
- RHEL
- 파이썬
- Chrome
- 디렉토리
- Kubernetes
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