implementing-syslog-centralization-with-rsyslog
यह क्या करती है
यह टूल rsyslog नाम के सिस्टम को कॉन्फ़िगर करने में मदद करता है, ताकि कई कंप्यूटरों से लॉग एक ही जगह पर सुरक्षित और व्यवस्थित तरीके से इकट्ठे किए जा सकें। यह उन कंप्यूटरों के लिए जरूरी कॉन्फ़िगरेशन फाइलें बनाता है जो अपने लॉग भेजेंगे, और उस केंद्रीय कंप्यूटर के लिए भी जो उन्हें प्राप्त करेगा।
कब इस्तेमाल करें
- ✓जब आपको कई सर्वर के लॉग एक ही जगह पर इकट्ठा करने हों।
- ✓जब आप चाहते हों कि लॉग सुरक्षित तरीके से (एन्क्रिप्टेड) भेजे जाएँ।
- ✓जब आपको लॉग को कंप्यूटर या प्रोग्राम के प्रकार के हिसाब से व्यवस्थित करना हो।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-syslog-centralization-with-rsyslog/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे सर्वर के लॉग को केंद्रीकृत और एन्क्रिप्ट करने के लिए rsyslog कॉन्फ़िगर करो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह टूल सर्वर और क्लाइंट दोनों के लिए कॉन्फ़िगरेशन फाइलें बनाता है। यह लॉग भेजते समय एन्क्रिप्शन से उन्हें सुरक्षित रखता है और प्राप्त हुई फाइलों को कंप्यूटर के हिसाब से व्यवस्थित करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Implementing Syslog Centralization with Rsyslog
When to Use
- When deploying or configuring implementing syslog centralization with rsyslog capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation
Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Instructions
- Install dependencies:
pip install jinja2 paramiko - Generate TLS certificates for rsyslog server and clients using OpenSSL.
- Run the agent to generate rsyslog server and client configurations:
- Server: TLS listener on port 6514, per-host directory output, JSON-format templates
- Client: TLS forwarding with disk-assisted queues for reliability
- Deploy configurations to servers via SSH (paramiko).
- Validate TLS connectivity and log delivery.
python scripts/agent.py --server-ip 10.0.0.1 --clients 10.0.0.10,10.0.0.11 --ca-cert ca.pem --output syslog_report.json
Examples
Server Configuration (TLS)
module(load="imtcp" StreamDriver.Name="gtls" StreamDriver.Mode="1"
StreamDriver.Authmode="x509/name")
input(type="imtcp" port="6514")
template(name="PerHostLog" type="string" string="/var/log/remote/%HOSTNAME%/%PROGRAMNAME%.log")
*.* ?PerHostLog
Client Configuration (Reliable Forwarding)
action(type="omfwd" target="10.0.0.1" port="6514" protocol="tcp"
StreamDriver="gtls" StreamDriverMode="1"
StreamDriverAuthMode="x509/name"
queue.type="LinkedList" queue.filename="fwdRule1"
queue.maxdiskspace="1g" queue.saveonshutdown="on"
action.resumeRetryCount="-1")
अक्सर पूछे जाने वाले सवाल
rsyslog क्या है?
यह एक कंप्यूटर प्रोग्राम है जो सिस्टम के लॉग मैसेज (गतिविधि के रिकॉर्ड) को संभालने और भेजने में मदद करता है।
लॉग क्या होते हैं?
ये किसी कंप्यूटर या प्रोग्राम में होने वाली घटनाओं के रिकॉर्ड होते हैं। इनसे पता चलता है कि क्या हुआ, समस्या का हल ढूँढने में और सुरक्षा जाँचने में ये काम आते हैं।
लॉग को केंद्रीकृत क्यों करें?
सभी लॉग एक जगह होने से सभी सिस्टम में जरूरी जानकारी का विश्लेषण, निगरानी और खोज करना आसान हो जाता है।
जानकारी
लेखक का मूल विवरण
Configure rsyslog for centralized log collection with TLS encryption, custom templates, and log rotation, generating server and client configuration files with GnuTLS stream drivers, x509 certificate authentication, per-host log segregation, and reliable queue settings. Use when building a centralized, encrypted syslog pipeline, hardening rsyslog client/server configs for high-availability log inf
लोकप्रियता
- GitHub स्टार
- 35k
- रैंकिंग में स्थान
- #8129
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 31/8/2026
कमेंट
- …
इस repository की और skills
abusing-dpapi-for-credential-access
35kआपके AI एजेंट को किसी खास काम के लिए तैयार instructions देता है, ताकि वह उसे बेहतर और तेज़ी से कर सके।
abusing-shadow-credentials-for-privesc
35kआपके AI एजेंट को साफ़ और अच्छी तरह से व्यवस्थित लिखना सिखाता है।
achieving-cmmc-level-2-compliance
35kयह आपके एजेंट को CMMC Level 2 compliance के लिए environment तैयार करने में मदद करता है। यह security requirements लागू करता है और ज़रूरी documentation संभालता है।
acquiring-disk-image-with-dd-and-dcfldd
35kआपके एजेंट को hard drives की exact copies बनाने में मदद करता है। जाँच के दौरान किसी भी जानकारी के खोने या बदलने से बचाने के लिए यह उपयोगी है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।