spirit posteets tagged syslog  [ Profile ]

Sort by: Date / Title /

  1. 6 years ago
    1. #!/bin/sh
    2. append="";
    3. tail -F /opt/log/audit/audit.log | sed -u -e 's/^M//g' -e '/^$/d' -e 's/ *$//g' -e 's/^ *//g' -e 's/ +/ /g'  | while read line; do
    4.         if [ "$line" == "___" ]
    5.         then
    6.                 logger -p local0.info -t tag $append
    7.                 append="";
    8.         else
    9.                 append="$append#$line";
    10.         fi
    11. done
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2155"></script>
  2. 6 years ago
    1. export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo $$ $USER "$(history 1)"|logger -p user.alert -t bash_history'
    2. readonly PROMPT_COMMAND
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2153"></script>
  3. 6 years ago
    <150> represents facility and severity following RC3164 Syslog header use the current timestamp and a random hostname
    1. echo "<150>`env LANG=us_US.UTF-8 date "+%b %d %H:%M:%S"` host`date +%s` service: my special message goes here" | nc 192.168.0.1 -u 514 -w 1
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2143"></script>
  4. sponsorised links
  5. 10 years ago
    # For IOS devices you might use the following to generate syslog entries for logins:
    
    login block-for 120 attempts 4 within 120
    login on-failure log
    login on-success log
    
    # to generate syslog entries for the executed commands:
    
    archive
    log config
    logging enable
    notify syslog
    hidekeys
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1637"></script>
  6. 11 years ago and saved by 1 other
    1. # Dans /etc/syslog.conf
    2. facility.priority               @IP ou nom
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/46"></script>
  7. 11 years ago
    1. syslogd -m 0 -r
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/45"></script>
  8. 11 years ago
    1. logger -p facility.priority "your message"
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/44"></script>

First / Previous / Next / Last / Page 1 of 1 (7 posteets)