hire-vladimir / sa-syslog_collection Goto Github PK
View Code? Open in Web Editor NEWMonitor syslog collection infrastructure & offer syslog configuration templates.
License: Apache License 2.0
Monitor syslog collection infrastructure & offer syslog configuration templates.
License: Apache License 2.0
Hello!
Your file permissions (FileCreateMode in rsyslog and perm() in syslog-ng) set the log files to 0755.
It's not necessary for log files to have executable permissions and worst case it could have some security impact. A better default would be 0644.
presently, instructions inderectly suggest to disable selinux or tune it when logging outside of /var/log. documentation should elaborate more instead, update instructions with suggestions as:
received feedback from multiple parties regarding "tuning" syslog. need to review the settings to see how they differ from default and the versions they were introduced. additional research is required.
$MainMsgQueueWorkerThreads 4
$MainMsgQueueWorkerThreadMinumumMessages 6000
$MainMsgQueueDequeueBatchSize 4096
$MainMsgQueueType FixedArray
$MainMsgQueueSize 250000
options {
long_hostnames (off);
check_hostname(yes);
keep_hostname (yes);
use_dns (yes);
use_fqdn (no);
create_dirs (no);
chain_hostnames (no);
dns_cache(yes);
dns_cache_size(2500);
dns_cache_expire(87600);
keep_timestamp (no);
log_iw_size(100);
log_fetch_limit(100);
flush_lines (100);
log_fifo_size (1000);
stats_freq (120);
time_reap (30);
time_reopen (2);
};
# udp
*.* @10.1.1.1:514
# tcp
*.* @@10.1.1.1:514
# udp with compression
*.* @(z9)10.1.1.1:514
destination d_loghost {udp("10.1.1.1" port(514) spoof_source(yes)); };
The index is called "syslog_health" in props and "health_syslog" in the dashboard. These should probably match up.
presently, legacy rsyslog config file is given as an example to keep things consistent with latest rsyslog shipped with RHEL and CentOS builds. Given user an option might help, as the new format is friendlier to work with.
As part of syslog engine writing out files, syslog server name could be included part of path. This is done by leveraging daemon variable substitution.
$myhostname
, per http://www.rsyslog.com/doc/master/configuration/properties.html$LOGHOST
, per https://syslog-ng.com/documents/html/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/reference-macros.html#idm46378515812272This could later be used to extract the splunk_server_syslog
field from source
field.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.