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