Editing
Syslog-ng
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Ophalen unieke foutmeldingen van syslog-ng == Twee scripts ondersteunen het ophalen van de unieke loginformatie van de syslog-ng server. error-script.sh lanceert het script level-error-plus.sh, bouwt het bestand overzicht.txt op en op het werkstation haal je met het script ./haalop-error-overzicht-syslog-ng.sh<br/> === Scripts error-overzicht === Het script error-script.sh <pre> #!/bin/bash ./level-error-plus.sh > overzicht.txt </pre> Het script level-error-plus.sh <pre> #!/bin/bash /usr/bin/mysql -ukarim -pk@r1m tlog <<EOFMYSQL select distinct level, host, msg from logs where level in ( 'err', 'crit', 'alert', 'emerg') order by level, host; EOFMYSQL </pre> === Stappen ophalen error-overzicht === Stap 1: Op de syslog-ng server in de home directory: <pre> ssh syslog-ng.Webhuis.nl user@syslog-ng:~$ ./error-script.sh </pre> Stap 2: Voer op het werkstation in de home directory het script haalop-error-overzicht-syslog-ng.sh uit: <pre> user@werkstation:~$ ./haalop-error-overzicht-syslog-ng.sh </pre> Stap 3: Het overzicht staat nu in de home directory. Kopieer overzicht.txt in het document template en druk het af. <hr/> Terug naar: [[Webhuis Support Infrastructuur]]
Summary:
Please note that all contributions to Webhuis wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Voorpagina
Cobol and PostgreSQL
PostgreSQL
CFEngine
Proxmox
Webhuis Kennisbank
Basale infra
Webhuis bouwstenen
Webhuis configuratie
Webhuis Infra
Webhuis Support
Webhuis Raspberry
Opzet Applicaties
Business Applicaties
Community portal
Current events
Recent changes
Random page
Help
sitesupport
Tools
What links here
Related changes
Special pages
Page information