Skip to main content
deleted 1 character in body
Source Link
slm
  • 379.8k
  • 127
  • 793
  • 897

Prebuilt?

Prebuilt?

Prebuilt?

Prebuilt?

added 191 characters in body
Source Link
slm
  • 379.8k
  • 127
  • 793
  • 897

Prebuilt?

To help people out with this I've taken the liberty to build the Bash RPM with the modifications made in Copr.

Prebuilt?

To help people out with this I've taken the liberty to build the Bash RPM with the modifications made in Copr.

added 3288 characters in body
Source Link
slm
  • 379.8k
  • 127
  • 793
  • 897

download & install source

patch

build

install

configure rsyslog

Now modify rsyslog's config, /etc/rsyslog.conf config:

$ sudo vim /etc/rsyslog.conf
$ModLoad imudp

    $UDPServerRun 514
    
$ModLoad imtcp

    $InputTCPServerRun 514

...
...
#### GLOBAL DIRECTIVES ####
$template IpTemplate,"/var/log/bash-log/%FROMHOST-IP%.log"
*.* ?IpTemplate
& ~

$ sudo vim /etc/rsyslog.conf
...
...
$ModLoad imudp
$UDPServerRun 514

$ModLoad imtcp
$InputTCPServerRun 514

...
...

#### GLOBAL DIRECTIVES ####
$template IpTemplate,"/var/log/bash-log/%FROMHOST-IP%.log"
*.* ?IpTemplate
& ~

...
...

test & confirm

Now modify rsyslog's config, /etc/rsyslog.conf:

$ sudo vim /etc/rsyslog.conf
$ModLoad imudp

    $UDPServerRun 514
    
$ModLoad imtcp

    $InputTCPServerRun 514

...
...
#### GLOBAL DIRECTIVES ####
$template IpTemplate,"/var/log/bash-log/%FROMHOST-IP%.log"
*.* ?IpTemplate
& ~

download & install source

patch

build

install

configure rsyslog

Now modify rsyslog's /etc/rsyslog.conf config:


$ sudo vim /etc/rsyslog.conf
...
...
$ModLoad imudp
$UDPServerRun 514

$ModLoad imtcp
$InputTCPServerRun 514

...
...

#### GLOBAL DIRECTIVES ####
$template IpTemplate,"/var/log/bash-log/%FROMHOST-IP%.log"
*.* ?IpTemplate
& ~

...
...

test & confirm

added 3288 characters in body
Source Link
slm
  • 379.8k
  • 127
  • 793
  • 897
Loading
added 3288 characters in body
Source Link
slm
  • 379.8k
  • 127
  • 793
  • 897
Loading
added 285 characters in body
Source Link
slm
  • 379.8k
  • 127
  • 793
  • 897
Loading
Source Link
slm
  • 379.8k
  • 127
  • 793
  • 897
Loading