Logging, Syslog and Log Anaylsys Forums
»
Forums
»
Syslog & syslogd
»
syslog-ng
How to capture a log file in syslog-ng?
Username:
1 Hour
1 Day
1 Week
1 Month
Forever
Password:
Home
Help
Search
Quick Search
Advanced Search
Login
Register
News
:
« previous
next »
Pages: [
1
]
0 Members and 1 Guest are viewing this topic.
Topic Tools
Topic Tools
Print
August 21, 2008, 07:19:20 am
#0
smith
smith
Send smith an email.
Show smith's last posts.
Show general stats for smith.
Newbie
Posts: 1
How to capture a log file in syslog-ng?
I have an application that creates it's own log file on a linux server. I would like to have the logs it produces sent to my central log server. How can I accomplish that? I am running syslog-ng on the central log server.
August 21, 2008, 08:52:28 am
#1
mutex
mutex
Show mutex's last posts.
Show general stats for mutex.
Administrator
Newbie
Posts: 782
Re: How to capture a log file in syslog-ng?
There are two ways you can do that:
If you have syslog-ng running on the client systems, you can add an entry like this:
source s_tail { file("myapp.log" follow_freq(1) flags(no-parse)); };
Then, send that to your central server.
Otherwise, you could try this:
tail -f myapp.log | sed -e 's/^/<133>/' | nc syslog-ng-server 514
Pages: [
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Forums
-----------------------------
=> Syslog & syslogd
===> syslog-ng
=> Log Data and Analysis
=> Windows Event Log
=> Web Server Logs
=> Security
=> General Discussion
=> Red Light District
=> Logs, Sarbanes Oxley and Compliance
GoogleTagged:
syslog capture
syslog-ng application log file source tail
logfile syslog
syslog application log include files
tail log file syslog
tail logfile syslog
syslog-ng read logs
send log
linux syslog capture
send logfiles syslog
send data syslog
syslog-ng tail
register logfile syslog syslog with
how-to client syslog-ng
tail log syslog-ng
syslog capturing tools
source file two log files syslog-ng
capture syslog information
send file
Information Security News
|
Jerry Bell's blog
|
Enterprise IT
|
Tropical Fish Information
|
Tropical Fish Forums
Loading...