SlideShare una empresa de Scribd logo
1 de 19
Co-Founder, CEO
Олеся Шелестова
oshelestova@rusiem.com
Events collection and
forwarding.
(RuSIEM/RvSIEM free)
2017
Mode
• Single mode
• Multi-node
• Load balancing (MQ)
• Emulate back-connection
• Distributed correlation
• Forward all events
• Forward events by condition
• Forwarding formats:
• Plain syslog
• TLS syslog
• CEF
• Json (normalized)
3
Example A
4
Balanced
Servers Region B
Server Region A
• You need to send the entire stream or by condition
• Formats: syslog plain, syslog TLS, JSON, CEF
TCP or UDP
Example B
5
Balanced
Servers Region B
Server Region A
• You need collect logs from other server
• Connections allowed only to DMZ
DMZ Example
X X
Example C
6
Balanced
Servers Region B
Server Region A
• You need stream events from A-Region to B
• In B-Region you have some server in the balanced mode
TCP or UDP
MQ
Example D
7
HQ Region
Cluster
Region A
• You need correlate events in Region A/B/C as single installation
• Correlate A and C region events
• Correlate A/B/C only in HQ without forward all events (!)
MQ
without all events
MQRegion B
Region C
Events path
8
LSINPUT FRS_SERVER LSFILTER LSELASTIC
From agent
From syslog
RuSIEM MQ
Correlation
Analytics
RAW JSON
normalized
JSON
normalized
+ symptoms
+category
+ weight
How to do it
(technical information) for Example A/B
9
Example A. Agenda.
10
• You need to send the entire stream or by condition
• Formats: syslog plain, syslog TLS, JSON, CEF
• Server Region A:
• will be receive all events from Region A
source
• Normalize events
• Operate symptomatic and weight events
• Correlate (if need)
• Store events
• Server Region B:
• will be receive all events from Region A
server and sources Region B
• Normalize events only from sources Region B
• Operate symptomatic and weight events
• Correlate (if need)
• Store events
Example A
11
• You need to send the entire stream or by condition
• Formats: syslog plain, syslog TLS, JSON, CEF
For all events forwarding:
1. For node “Server Region A” create custom config with suffix “_user.conf” for frs_server. Example,
“/opt/rusiem/frs_server/etc/send_tcp_user.conf“
“Server Region A” – “send_tcp_user.conf” for frs_server
12
input {
internal { # pickup events from rusiem-mq internal
key => "classified"
}}
filter {
}
output {
tcp {
codec => json_lines
host => "172.16.0.125“ # change this for “server region B” IP
port => 5016
}}
13
In node Server Region B:
2. For node “Server Region B” create custom config with suffix “_user.conf” for lsfilter. Example,
“/opt/rusiem/lsfilter/etc/receive_tcp_user.conf“
input {
tcp {
codec => json
port => 5016
type => syslog
add_field => [ "[rcvr][port]", “5016" ]
add_field => [ "[rcvr][proto]", "tcp" ]
queue_type => file
}
}
output {
tcp {
port => 261
codec => json
}
}
• Allow out/input tcp connection in /etc/init.d/firewall.sh for A/B node
• Disable FW update in /opt/rusiem/modules_user.dat
• Run command “service frs_server restart” in Server A
• Run command “service lsfilter restart” in Server B
• Check receive events in Node B “tcpdump dst port 5016”
• Profit
14
Example B. Agenda.
15
• Server Region A:
• will be receive all events from Region A
source
• Normalize events
• Operate symptomatic and weight events
• Correlate (if need)
• Store events
• Provide events from Region A to B over MQ
• Server Region B:
• will be receive all events from Region A
• Receive normalized events from Region B
over MQ
• Normalize events only from sources Region B
• Operate symptomatic and weight events
• Correlate (if need)
• Store events
• You need collect logs from other server
• Connections allowed only to DMZ. From from DMZ to Local/Region B - denied.
Example B
16
1. Change /etc/redis/redis.conf on node Region A:
• Comment row bind 127.0.0.1 with #. Example, #bind 127.0.0.1. Restart redis with command “service
redis-server restart”
• Save and exit from editor
2. Create new user config file for frs_server on node Region A: nano
/opt/rusiem/frs_server/etc/provide_user.conf :
• You need collect logs from other server
• Connections allowed only to DMZ. From from DMZ to Local/Region B - denied.
Example B “Server Region A” –
“/opt/rusiem/frs_server/etc/provide_user.conf ” for frs_server
17
input {
internal {
key => "classified"
}}
filter {
}
output {
redis {
host => "127.0.0.1"
data_type => "list"
codec => json
key => "provider"
workers => 1
}}
Example B
18
3. On node Region B change /etc/redis/redis.conf:
• Add row:
slaveof 172.15.0.1 # Set ip Node Region A
• Change row: slave-read-only yes to
slave-read-only no
• Save and exit
• Restart redis-server on node B.
Attention! Slaveof row may be only one! We cannot use more that one master node :/
• You need collect logs from other server
• Connections allowed only to DMZ. From from DMZ to Local/Region B - denied.
Example B
19
4. On node Region B and Region A change /etc/init.d/firewall.conf:
• On node A add rows:
iptables -A INPUT -p tcp –s you_IP_node_B -d $EXTIP --dport 6379 -j ACCEPT
iptables -A OUTPUT -p tcp -s $EXTIP --sport 6379 –d you_IP_node_B -j ACCEPT
• On node B add rows:
iptables -A INPUT -p tcp –s you_IP_node_A -d $EXTIP --sport 6379 -j ACCEPT
iptables -A OUTPUT -p tcp -s $EXTIP --dport 6379 –d you_IP_node_A -j ACCEPT
5. On node A and B restart firewall with command: /etc/init.d/firewall.sh restart
6. Check events from node A on node B RuSIEM interface.
• You need collect logs from other server
• Connections allowed only to DMZ. From from DMZ to Local/Region B - denied.
Our site: https://www.rusiem.com
Facebook: https://www.facebook.com/rvsiem
Telegram news: https://t.me/rusiem
Mail: support@rusiem.com
CEO, Olesya Shelestova oshelestova@rusiem.com
Thank you
20

Más contenido relacionado

La actualidad más candente

MCSA 70-410 2 modifying your installation
MCSA 70-410 2 modifying your installationMCSA 70-410 2 modifying your installation
MCSA 70-410 2 modifying your installation
Tarek Amer
 
Itb2018 cf apps to dev to production with command box cf-config docker
Itb2018   cf apps to dev to production with command box cf-config dockerItb2018   cf apps to dev to production with command box cf-config docker
Itb2018 cf apps to dev to production with command box cf-config docker
Ortus Solutions, Corp
 
MCSA 70-410 4 configure servers for remote managment
MCSA 70-410 4 configure servers for remote managmentMCSA 70-410 4 configure servers for remote managment
MCSA 70-410 4 configure servers for remote managment
Tarek Amer
 
Webmin configuration in Linux
Webmin configuration in LinuxWebmin configuration in Linux
Webmin configuration in Linux
Thamizharasan P
 
Backend Server Validation
Backend Server ValidationBackend Server Validation
Backend Server Validation
Yu Tao Zhang
 

La actualidad más candente (20)

MCSA 70-410 2 modifying your installation
MCSA 70-410 2 modifying your installationMCSA 70-410 2 modifying your installation
MCSA 70-410 2 modifying your installation
 
Deployment ibm connections - No Http Server required
Deployment ibm connections - No Http Server requiredDeployment ibm connections - No Http Server required
Deployment ibm connections - No Http Server required
 
Powershell direct
Powershell directPowershell direct
Powershell direct
 
Install Salsa Windows 2012 Three Servers
Install Salsa  Windows 2012 Three ServersInstall Salsa  Windows 2012 Three Servers
Install Salsa Windows 2012 Three Servers
 
Deploying Plone on AWS
Deploying Plone on AWSDeploying Plone on AWS
Deploying Plone on AWS
 
Ip
IpIp
Ip
 
Itb2018 cf apps to dev to production with command box cf-config docker
Itb2018   cf apps to dev to production with command box cf-config dockerItb2018   cf apps to dev to production with command box cf-config docker
Itb2018 cf apps to dev to production with command box cf-config docker
 
Class.devops.chapter.1.intro
Class.devops.chapter.1.introClass.devops.chapter.1.intro
Class.devops.chapter.1.intro
 
MCSA 70-410 4 configure servers for remote managment
MCSA 70-410 4 configure servers for remote managmentMCSA 70-410 4 configure servers for remote managment
MCSA 70-410 4 configure servers for remote managment
 
Webmin configuration in Linux
Webmin configuration in LinuxWebmin configuration in Linux
Webmin configuration in Linux
 
MuleSoft Meetup Roma - Runtime Fabric Series (From Zero to Hero) - Sessione 2
MuleSoft Meetup Roma - Runtime Fabric Series (From Zero to Hero) - Sessione 2MuleSoft Meetup Roma - Runtime Fabric Series (From Zero to Hero) - Sessione 2
MuleSoft Meetup Roma - Runtime Fabric Series (From Zero to Hero) - Sessione 2
 
Ftp server
Ftp serverFtp server
Ftp server
 
ITB2019 Scaling with CommandBox in Production! - Brad Wood
ITB2019 Scaling with CommandBox in Production! - Brad WoodITB2019 Scaling with CommandBox in Production! - Brad Wood
ITB2019 Scaling with CommandBox in Production! - Brad Wood
 
I module dmz
I module dmzI module dmz
I module dmz
 
OSMC 2014: Monitoring VoIP Systems | Sebastian Damm
OSMC 2014: Monitoring VoIP Systems | Sebastian DammOSMC 2014: Monitoring VoIP Systems | Sebastian Damm
OSMC 2014: Monitoring VoIP Systems | Sebastian Damm
 
Configure ftp server on cisco packet tracker converted
Configure ftp server on cisco packet tracker convertedConfigure ftp server on cisco packet tracker converted
Configure ftp server on cisco packet tracker converted
 
cPanel conf 2017 - How to Speak cPanel
cPanel conf 2017 - How to Speak cPanelcPanel conf 2017 - How to Speak cPanel
cPanel conf 2017 - How to Speak cPanel
 
Backend Server Validation
Backend Server ValidationBackend Server Validation
Backend Server Validation
 
Zumasys Citrix Top 10 Tips and Tricks
Zumasys Citrix Top 10 Tips and TricksZumasys Citrix Top 10 Tips and Tricks
Zumasys Citrix Top 10 Tips and Tricks
 
Smuggling TCP traffic through HTTP
Smuggling TCP traffic through HTTPSmuggling TCP traffic through HTTP
Smuggling TCP traffic through HTTP
 

Similar a RuSiem events collection and forwarding

Linux lecture9
Linux lecture9Linux lecture9
Linux lecture9
gkj021
 
Scalable Socket Server by Aryo
Scalable Socket Server by AryoScalable Socket Server by Aryo
Scalable Socket Server by Aryo
Agate Studio
 
Apache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual HostingApache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual Hosting
webhostingguy
 

Similar a RuSiem events collection and forwarding (20)

03 sockets
03 sockets03 sockets
03 sockets
 
Linux lecture9
Linux lecture9Linux lecture9
Linux lecture9
 
Orchestration Tool Roundup - Arthur Berezin & Trammell Scruggs
Orchestration Tool Roundup - Arthur Berezin & Trammell ScruggsOrchestration Tool Roundup - Arthur Berezin & Trammell Scruggs
Orchestration Tool Roundup - Arthur Berezin & Trammell Scruggs
 
[Advantech] PAC SW Multiprog Tutorial step by step
[Advantech] PAC SW Multiprog Tutorial step by step [Advantech] PAC SW Multiprog Tutorial step by step
[Advantech] PAC SW Multiprog Tutorial step by step
 
Consul scale
Consul scaleConsul scale
Consul scale
 
Socket programming-tutorial-sk
Socket programming-tutorial-skSocket programming-tutorial-sk
Socket programming-tutorial-sk
 
Scalable Socket Server by Aryo
Scalable Socket Server by AryoScalable Socket Server by Aryo
Scalable Socket Server by Aryo
 
Apache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual HostingApache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual Hosting
 
Implementation of DNS Anycast - a case study
Implementation of DNS Anycast - a case studyImplementation of DNS Anycast - a case study
Implementation of DNS Anycast - a case study
 
Net Programming.ppt
Net Programming.pptNet Programming.ppt
Net Programming.ppt
 
Network Prog.ppt
Network Prog.pptNetwork Prog.ppt
Network Prog.ppt
 
3. reverse primarydns using bind for ptr and cname record ipv6
3. reverse primarydns using bind for ptr and cname record ipv63. reverse primarydns using bind for ptr and cname record ipv6
3. reverse primarydns using bind for ptr and cname record ipv6
 
Windows containers troubleshooting
Windows containers troubleshootingWindows containers troubleshooting
Windows containers troubleshooting
 
Networking lab
Networking labNetworking lab
Networking lab
 
Byte blower basic setting full_v2
Byte blower basic setting full_v2Byte blower basic setting full_v2
Byte blower basic setting full_v2
 
Cs 704 d rpc
Cs 704 d rpcCs 704 d rpc
Cs 704 d rpc
 
Globus Endpoint Administration (GlobusWorld Tour - STFC)
Globus Endpoint Administration (GlobusWorld Tour - STFC)Globus Endpoint Administration (GlobusWorld Tour - STFC)
Globus Endpoint Administration (GlobusWorld Tour - STFC)
 
L5-Sockets.pptx
L5-Sockets.pptxL5-Sockets.pptx
L5-Sockets.pptx
 
Building an ActionScript Game Server with over 15,000 Concurrent Connections
Building an ActionScript Game Server with over 15,000 Concurrent ConnectionsBuilding an ActionScript Game Server with over 15,000 Concurrent Connections
Building an ActionScript Game Server with over 15,000 Concurrent Connections
 
Sharing-Knowledge-OAM-3G-Ericsson .ppt
Sharing-Knowledge-OAM-3G-Ericsson   .pptSharing-Knowledge-OAM-3G-Ericsson   .ppt
Sharing-Knowledge-OAM-3G-Ericsson .ppt
 

Más de Olesya Shelestova

RuSIEM. Потребители. Состав продукта. Отличия. Применение.
RuSIEM. Потребители. Состав продукта. Отличия. Применение.RuSIEM. Потребители. Состав продукта. Отличия. Применение.
RuSIEM. Потребители. Состав продукта. Отличия. Применение.
Olesya Shelestova
 
автоматизируем пентест Wifi сети
автоматизируем пентест Wifi сетиавтоматизируем пентест Wifi сети
автоматизируем пентест Wifi сети
Olesya Shelestova
 

Más de Olesya Shelestova (17)

Руководство по формату событий для разработчиков
Руководство по формату событий для разработчиковРуководство по формату событий для разработчиков
Руководство по формату событий для разработчиков
 
RuSIEM vs SOC (En)
RuSIEM vs SOC (En)RuSIEM vs SOC (En)
RuSIEM vs SOC (En)
 
RuSIEM vs SOC (Rus)
RuSIEM vs SOC (Rus)RuSIEM vs SOC (Rus)
RuSIEM vs SOC (Rus)
 
RuSIEM IT assets
RuSIEM IT assetsRuSIEM IT assets
RuSIEM IT assets
 
How to create correlation rule for threat detection in RuSIEM
How to create correlation rule for threat detection in RuSIEMHow to create correlation rule for threat detection in RuSIEM
How to create correlation rule for threat detection in RuSIEM
 
From SIEM to Business processes
From SIEM to Business processesFrom SIEM to Business processes
From SIEM to Business processes
 
Free RvSIEM. Intro (Rus)
Free RvSIEM. Intro (Rus)Free RvSIEM. Intro (Rus)
Free RvSIEM. Intro (Rus)
 
RuSIEM overview (english version)
RuSIEM overview (english version)RuSIEM overview (english version)
RuSIEM overview (english version)
 
Rusiem 2017_обзор
Rusiem 2017_обзорRusiem 2017_обзор
Rusiem 2017_обзор
 
SIEM use cases - как их написать
SIEM use cases - как их написатьSIEM use cases - как их написать
SIEM use cases - как их написать
 
Корреляция в SIEM системах
Корреляция в SIEM системахКорреляция в SIEM системах
Корреляция в SIEM системах
 
SIEM для ИТ
SIEM для ИТSIEM для ИТ
SIEM для ИТ
 
RuSIEM. Потребители. Состав продукта. Отличия. Применение.
RuSIEM. Потребители. Состав продукта. Отличия. Применение.RuSIEM. Потребители. Состав продукта. Отличия. Применение.
RuSIEM. Потребители. Состав продукта. Отличия. Применение.
 
RuSIEM 2016
RuSIEM 2016RuSIEM 2016
RuSIEM 2016
 
RuSIEM (15.11.2015)
RuSIEM (15.11.2015)RuSIEM (15.11.2015)
RuSIEM (15.11.2015)
 
RuSIEM
RuSIEMRuSIEM
RuSIEM
 
автоматизируем пентест Wifi сети
автоматизируем пентест Wifi сетиавтоматизируем пентест Wifi сети
автоматизируем пентест Wifi сети
 

Último

%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 

Último (20)

%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 

RuSiem events collection and forwarding

  • 1. Co-Founder, CEO Олеся Шелестова oshelestova@rusiem.com Events collection and forwarding. (RuSIEM/RvSIEM free) 2017
  • 2. Mode • Single mode • Multi-node • Load balancing (MQ) • Emulate back-connection • Distributed correlation • Forward all events • Forward events by condition • Forwarding formats: • Plain syslog • TLS syslog • CEF • Json (normalized) 3
  • 3. Example A 4 Balanced Servers Region B Server Region A • You need to send the entire stream or by condition • Formats: syslog plain, syslog TLS, JSON, CEF TCP or UDP
  • 4. Example B 5 Balanced Servers Region B Server Region A • You need collect logs from other server • Connections allowed only to DMZ DMZ Example X X
  • 5. Example C 6 Balanced Servers Region B Server Region A • You need stream events from A-Region to B • In B-Region you have some server in the balanced mode TCP or UDP MQ
  • 6. Example D 7 HQ Region Cluster Region A • You need correlate events in Region A/B/C as single installation • Correlate A and C region events • Correlate A/B/C only in HQ without forward all events (!) MQ without all events MQRegion B Region C
  • 7. Events path 8 LSINPUT FRS_SERVER LSFILTER LSELASTIC From agent From syslog RuSIEM MQ Correlation Analytics RAW JSON normalized JSON normalized + symptoms +category + weight
  • 8. How to do it (technical information) for Example A/B 9
  • 9. Example A. Agenda. 10 • You need to send the entire stream or by condition • Formats: syslog plain, syslog TLS, JSON, CEF • Server Region A: • will be receive all events from Region A source • Normalize events • Operate symptomatic and weight events • Correlate (if need) • Store events • Server Region B: • will be receive all events from Region A server and sources Region B • Normalize events only from sources Region B • Operate symptomatic and weight events • Correlate (if need) • Store events
  • 10. Example A 11 • You need to send the entire stream or by condition • Formats: syslog plain, syslog TLS, JSON, CEF For all events forwarding: 1. For node “Server Region A” create custom config with suffix “_user.conf” for frs_server. Example, “/opt/rusiem/frs_server/etc/send_tcp_user.conf“
  • 11. “Server Region A” – “send_tcp_user.conf” for frs_server 12 input { internal { # pickup events from rusiem-mq internal key => "classified" }} filter { } output { tcp { codec => json_lines host => "172.16.0.125“ # change this for “server region B” IP port => 5016 }}
  • 12. 13 In node Server Region B: 2. For node “Server Region B” create custom config with suffix “_user.conf” for lsfilter. Example, “/opt/rusiem/lsfilter/etc/receive_tcp_user.conf“ input { tcp { codec => json port => 5016 type => syslog add_field => [ "[rcvr][port]", “5016" ] add_field => [ "[rcvr][proto]", "tcp" ] queue_type => file } } output { tcp { port => 261 codec => json } }
  • 13. • Allow out/input tcp connection in /etc/init.d/firewall.sh for A/B node • Disable FW update in /opt/rusiem/modules_user.dat • Run command “service frs_server restart” in Server A • Run command “service lsfilter restart” in Server B • Check receive events in Node B “tcpdump dst port 5016” • Profit 14
  • 14. Example B. Agenda. 15 • Server Region A: • will be receive all events from Region A source • Normalize events • Operate symptomatic and weight events • Correlate (if need) • Store events • Provide events from Region A to B over MQ • Server Region B: • will be receive all events from Region A • Receive normalized events from Region B over MQ • Normalize events only from sources Region B • Operate symptomatic and weight events • Correlate (if need) • Store events • You need collect logs from other server • Connections allowed only to DMZ. From from DMZ to Local/Region B - denied.
  • 15. Example B 16 1. Change /etc/redis/redis.conf on node Region A: • Comment row bind 127.0.0.1 with #. Example, #bind 127.0.0.1. Restart redis with command “service redis-server restart” • Save and exit from editor 2. Create new user config file for frs_server on node Region A: nano /opt/rusiem/frs_server/etc/provide_user.conf : • You need collect logs from other server • Connections allowed only to DMZ. From from DMZ to Local/Region B - denied.
  • 16. Example B “Server Region A” – “/opt/rusiem/frs_server/etc/provide_user.conf ” for frs_server 17 input { internal { key => "classified" }} filter { } output { redis { host => "127.0.0.1" data_type => "list" codec => json key => "provider" workers => 1 }}
  • 17. Example B 18 3. On node Region B change /etc/redis/redis.conf: • Add row: slaveof 172.15.0.1 # Set ip Node Region A • Change row: slave-read-only yes to slave-read-only no • Save and exit • Restart redis-server on node B. Attention! Slaveof row may be only one! We cannot use more that one master node :/ • You need collect logs from other server • Connections allowed only to DMZ. From from DMZ to Local/Region B - denied.
  • 18. Example B 19 4. On node Region B and Region A change /etc/init.d/firewall.conf: • On node A add rows: iptables -A INPUT -p tcp –s you_IP_node_B -d $EXTIP --dport 6379 -j ACCEPT iptables -A OUTPUT -p tcp -s $EXTIP --sport 6379 –d you_IP_node_B -j ACCEPT • On node B add rows: iptables -A INPUT -p tcp –s you_IP_node_A -d $EXTIP --sport 6379 -j ACCEPT iptables -A OUTPUT -p tcp -s $EXTIP --dport 6379 –d you_IP_node_A -j ACCEPT 5. On node A and B restart firewall with command: /etc/init.d/firewall.sh restart 6. Check events from node A on node B RuSIEM interface. • You need collect logs from other server • Connections allowed only to DMZ. From from DMZ to Local/Region B - denied.
  • 19. Our site: https://www.rusiem.com Facebook: https://www.facebook.com/rvsiem Telegram news: https://t.me/rusiem Mail: support@rusiem.com CEO, Olesya Shelestova oshelestova@rusiem.com Thank you 20