Тёмный

Azure Sentinel Lab Series | Setup Syslog Collector and install Azure Sentinel Agent | EP1 

TeachJing
Подписаться 9 тыс.
Просмотров 36 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 85   
@nathanwebb2800
@nathanwebb2800 2 года назад
Also, the reason you may not have seen your test message come through when you listened on the OMS agent port (around 24:02) is that the tcpdump command by default listened to eth0 but the traffic to the OMS agent probably went through the loopback interface (lo) because I imagine the OMS agent is listening on localhost only :)
@TeachJing
@TeachJing 2 года назад
Your exactly right. This ensures the OMS agents don’t listen remotely to those ports so makes complete sense later on after I posted the video lol. Good catch! Also if your interested. You can also program additional ports on the OMS agent to send logs directly to a custom log table! Like 25227 to goto a named custom table and use Rsyslog to convert the message to match that new custom table schema similar to how we handle CEF on 25226. Ubiquiti connector does just this.
@nathanwebb2800
@nathanwebb2800 2 года назад
@@TeachJing that is super awesome to know! One thing that is bugging me is how long Sentinel takes to process a new source and see it as connected. Syslog via OMS has taken over an hour then magically appeared. Do you know how you can use the OMS config file in /etc/rsyslogd/ to send all messages except when they contain a phrase? I’ve seen your videos on exclusive includes but wondered about excludes. Currently I’ve put a file in /etc/rsyslod.d/10-exclusions.conf which has an if statement with a stop when the condition matches, however. I’m worried this will stop the system locally logging it, instead of just not sending it to the OMS agent. I think Sentinel could do with kind of configuration on the Syslog Workspace configuration instead of just syslog facility and priority level!
@TeachJing
@TeachJing 2 года назад
If your worried about local logging. Locate the entry that logs it locally which is typically the Rsyslog.conf. Move that over to your 10 file or put a file in front of it that logs it all and Rsyslog knows to handle it first. Then your 10 file excludes and then your OMS gets the leftover. So again 5 file to do local logging 10 file excludes OMS file handles the logs that have been filtered If you look at Rsyslog.conf you will notice the include Rsyslog.d gets brought it AFTER local logging so I think your ok, but try it out and come back to me with sample logger commands and let me know. I’m actually almost done building a fully containerized docker container with all kinds of scenarios with Logstash, kafka, file logging to mess with and see how it flows. Stay on the lookout for that in the near future.
@nathanwebb2800
@nathanwebb2800 2 года назад
@@TeachJing ha! I feel so stupid now because that makes perfect sense. Log to disk and then have a code block after with an if statement. Awesome, thanks for your help. I’ve come across your content in the past few days and you’ve helped my get Sentinel spun up with logging in my dev e5 tenant! Looking forward to more content from you!
@TeachJing
@TeachJing 2 года назад
@@nathanwebb2800 Yes! All this I learned bro through trial and error. If you really want to be a fancy, Add a few variables like host to that log path and boom, all your logs from each host goes into their own file into a auth folder. Like /var/log/auth/.log Then you don't have to tail auth but just tail the respective host file. Throw in some log rotation with wildcard and ensures those disks never get full but you can still log locally. That is also how I troubleshoot as if I don't see a file... then that host isn't coming in :D
@riadoszh6616
@riadoszh6616 9 месяцев назад
nice video! it was very useful and very interesting :) your content is very informative. thank you for your valuable contribution! please keep going!
@trendyniro
@trendyniro Год назад
Thank you so much Teachjing! you gave me loads of info!...
@rmp5s
@rmp5s 11 месяцев назад
Great vid, my dude. Would love to see an updated video with the new AMA agent. OMS is going away. For some reason.
@khurramwzd
@khurramwzd 3 года назад
Thanks a lot. A much awaited series.
@jagadeeshg90
@jagadeeshg90 2 года назад
Thanks a lot for Lab Explaination, It helps to understand deeper, Keep Rocking @TeachJing
@anwarullahsyed3058
@anwarullahsyed3058 Год назад
love your videos!!! keep it up
@RafaelOliveira-vg8gq
@RafaelOliveira-vg8gq 3 года назад
Thank you so much for saving my life everyday \o/ \o/ \o/ I really appreciate. Keep doing your things.
@TeachJing
@TeachJing 3 года назад
Happy to help!
@sreepuli2311
@sreepuli2311 3 года назад
quite confusing between syslog and cef logs, if you can show how to forward CEF logs to sentinel will be helpful
@muhammadamin6759
@muhammadamin6759 3 года назад
Thank you so much for making this video. kudos to you
@TeachJing
@TeachJing 3 года назад
Glad you enjoyed it!
@Panda-bd6gc
@Panda-bd6gc 3 года назад
Thanks a ton for this series! I've subscribed & liked and hopefully you'll publish more useful content like this!
@TeachJing
@TeachJing 3 года назад
Thanks for taking the time to comment and subscribe!
@nathanwebb2800
@nathanwebb2800 2 года назад
just a heads up, I use tcpdump -X to show the body of the packet. Super helpful when you're setting up SIEM solutions
@TeachJing
@TeachJing 2 года назад
Very Nice!! I’ll definitely remember that
@jimtaylor4938
@jimtaylor4938 11 месяцев назад
What about the AMA agent ?
@sergiot3143
@sergiot3143 3 года назад
Love the content! A lot was over my head, but I'll work on my Linux skills to get a better understanding of what you were doing. I don't know VI or many of the commands you used but will work on learning them. I'm also working on learning jupyter notebooks, so anything that incorporates the notebooks with Sentinel would be awesome. I am trying to become our SME for Sentinel but I am just getting started with SIEM's so anything covering Sentinel is a bonus. Your video has been the best coverage I have seen and I've seen a lot. I'm working through the Ninja course but what you covered is some much more useful then anything I've done in that course. Either way, continue the great work and I'm looking forward to future videos. I'm going to watch your P2 on CEF and your KQL course. Cheers!
@TeachJing
@TeachJing 3 года назад
Keep practicing. I am going alot deeper than the other content, but I'm glad your able to keep up. Eventually it will come together!
@martinmatacek2990
@martinmatacek2990 Год назад
Thank for this great Syslog tutorial. I have a question to Configuration of OMS agent. I am trying to configure 2 connectors, where one connector "Eset Security Management Center (Preview)" needs data in API format. My problem is that other connector "Cisco ASA" stops working if I update section "" and change value "type out_oms" to "type out_oms_api" in /etc/opt/microsoft/omsagent/{yourworkspaceid}/conf/omsagent.conf. Can you please give me some hint how to configure this two connectors to live together?🙂 Many thanks Martin
@simple-security
@simple-security 5 месяцев назад
great video but it's now obsolete. consider a new on on the AMA agent.
@darrensmith5544
@darrensmith5544 11 месяцев назад
Good vid!
@mr.cmoorecrypto
@mr.cmoorecrypto Год назад
Amazing video Jing! My one question is how do you stop CEF logs from feeding into the Syslog table? I am currently working on that, and it's causing me some trouble.
@TeachJing
@TeachJing Год назад
You gotta stop the CEF events prior to before it gets sent to 25224. Check out /etc/Rsyslog.d/ folder and you prob don’t got a stopper.
@gliceriojrlajara4329
@gliceriojrlajara4329 Месяц назад
Could ypu make new syslog/cef firwarder lab seiries with the new sentinel ama connector?
@RIYADMURAD
@RIYADMURAD 3 года назад
Awesome tutorial, but how to configure the OMS Agent to send specific Logfile to a specific(new) custom table instead of standard syslog table?
@TeachJing
@TeachJing 3 года назад
Did you figure this out. That can be achieved with simple Rsyslog/Syslog NG Parsing or you can use logstash.
@RIYADMURAD
@RIYADMURAD 3 года назад
Not yet, i'm working on several usecases
@TeachJing
@TeachJing 3 года назад
@@RIYADMURAD docs.microsoft.com/en-us/azure/azure-monitor/agents/data-sources-custom-logs. This site explains a little, but you will want to first figure out how you can parse those logs. If they are syslog format where you can read it in Rsyslog, you can simply save logs to a new file and then setup a custom connector that will basically listen on another port but is directed to another table. Customlog --> specialOMSAgentPort (ex:25229), This special connector will point to your custom table you created and your done. Have rsyslog then forward traffic matching that message to this new port you setup. Or you can use logstash to read from a custom log file you have parsed out and upload that to sentinel.
@TeachJing
@TeachJing 3 года назад
@@RIYADMURAD Logstash link here docs.microsoft.com/en-us/azure/sentinel/connect-logstash
@RIYADMURAD
@RIYADMURAD 3 года назад
Thanks a lot.🙏🙏🙏
@ciarahoulihan8734
@ciarahoulihan8734 2 года назад
Great video! Would love to see azure sentinel and terraform together
@TeachJing
@TeachJing 2 года назад
I will add it to the list!
@dirkl9652
@dirkl9652 3 года назад
Good stuff bro.
@TeachJing
@TeachJing 3 года назад
Appreciate it
@zyeuh2565
@zyeuh2565 3 года назад
A fucking god send. Thank you for the videos !
@TeachJing
@TeachJing 3 года назад
Your welcome! Thanks for commenting
@mikeslates353
@mikeslates353 2 года назад
Great video! I'm just starting to look into Sentinel as a possible SIEM for our company. Can the syslog/collector be setup on a Windows server? We're not a Linux shop, and thus have zero experience with Linux and would rather not bring in an OS we know little about. All new maintenance, updates, and security concerns. Thanks.
@jayjoshi3853
@jayjoshi3853 2 года назад
Hi Mike, have you got your answers yet? I am looking for the safe stuff.
@oipoip3935
@oipoip3935 2 года назад
No it has to be Linux
@yashwantbikaner
@yashwantbikaner 3 года назад
just wanted to add, i think you are running tcpdump on port 25224 which uses eth 0 default , it should be interface lo. That could be the reason why you didnt received the test msg.
@bcyz1000
@bcyz1000 2 года назад
You are 100% correct. tcpdump -i lo port 25224 would have caught it. Smart man.
@ssad-yl8nd
@ssad-yl8nd Год назад
This is all cool, but now Microsoft says that workspace agent configuration method is legacy. Would love to see if there is a solution to push this to Sentinel that is future proof beyond August 2024
@zakecysec
@zakecysec 7 месяцев назад
tail: cannot open 'messages' for reading: No such file or directory help
@zaki-x6r
@zaki-x6r 9 месяцев назад
Why i don't have message file in /var/log ?
@kasarlasrividya5383
@kasarlasrividya5383 2 года назад
If I have to configure log collector on cloud but my machines are on-prem (in my lab) . How do I tell my machines it has to forward lags to machine in cloud
@issamnaouali1574
@issamnaouali1574 2 года назад
Very advanced xd Plz is it possible to show us how to collect lors from asa cisco to sentinel ?
@kasarlasrividya5383
@kasarlasrividya5383 2 года назад
How does one machine know to which machine it has to forward the logs? I mean how does the machine know where is the syslog log collector
@harrier113
@harrier113 3 года назад
Great video, are your VMs virtualized on a local hypervisor or cloud, both?
@TeachJing
@TeachJing 3 года назад
Both!
@harrier113
@harrier113 3 года назад
@@TeachJing Thanks for the reply, which linux distro are you using in the Sentinel series? CentOS?
@TeachJing
@TeachJing 3 года назад
@@harrier113 Ubuntu
@charlesquansah4847
@charlesquansah4847 2 года назад
in order to set this up I would need to buy Azure Sentinnel right? And if so what pricing would be appropriate to complete lab exercises?
@RahulSingh-r6t
@RahulSingh-r6t 7 месяцев назад
What is the headset you are using? 🙂
@usarkar2006
@usarkar2006 2 года назад
You rocks
@TheTCPTalk
@TheTCPTalk Год назад
man how did the log just show up on sentinel? when did you even do the config and set the sentinel ip, how does your logger know where is the sentinel ip? its like these videos just assume that people watching know most of the stuff lol
@mr.cmoorecrypto
@mr.cmoorecrypto Год назад
The OMS agent sends the log to Sentinel. It already knows where to point the data for Sentinel to receive it.
@roevive
@roevive 9 месяцев назад
Can this be done for free? I'm interesting in doing this but assume it has costs associated
@uriel4292
@uriel4292 3 года назад
Hi TeachJing, I learned a lot on your videos. I'm new to KQL and Sentinel. I have a question by the way. I work in a small company any we have M365 and Azure Identity Protection. I noticed that Sentinel will display duplicate alerts coming from Azure Identity Protection and M365. What could be the reason for that?
@TeachJing
@TeachJing 3 года назад
Check if your actually receiving two events. If you are generating two alerts then you need to check if you are grouping similar alerts together so only one incident is generated. I’ll make a video they explains it next week that explains it in detail along with other things things
@uriel4292
@uriel4292 3 года назад
@@TeachJing Thank for the reply. If I may, can you also create a video about threat hunting in sentinel? Like hunting IOCs such as (Hash values, services running, backdoors, etc.). Thank you.
@nitinmaurya6835
@nitinmaurya6835 2 года назад
Hey Hi, I want to know where the linux systems are hosted? Is it VMWare or Azure?
@TeachJing
@TeachJing 2 года назад
My home lab behind me most of the time, but sometimes it’s azure in some demos. I don’t use VMware too often, but do have a cluster I use sometimes. Any reason for that question I could help with?
@nitinmaurya6835
@nitinmaurya6835 2 года назад
@@TeachJing Yeah, I was just curious about sending logs of guest machines to azure. If you know then please make a video on that also because most of my attack defend setup is on VMWare.
@OurCloudSchool-Hindi
@OurCloudSchool-Hindi 3 года назад
How make changes to your cursor?
@TeachJing
@TeachJing 3 года назад
That is with the ZoomItTool on Sysinternals docs.microsoft.com/en-us/sysinternals/downloads/zoomit
@adamzachary6947
@adamzachary6947 3 года назад
Have anyone deployed Sentinel SAP Connector ?
@bbrendon
@bbrendon 3 года назад
audio quality is bad. the clipping hurts my hears.
@TeachJing
@TeachJing 3 года назад
Sorry to hear that! The audio gets better. I didn’t have a good setup. Ping me on LinkedIn and I can show you the ropes!
@ashishhingmire123
@ashishhingmire123 3 года назад
hello, I have followed the steps mentioned in this webinar. But unfortunately all the PA FW and Cisco Meraki events are getting forwarded as normal syslog messages to Azure sentinel via the local oms agent running on syslog collector/RHEL server. Any idea what should be changes in the 95-omsagent.conf or rsyslog.conf file?
@Guest-gy9vp
@Guest-gy9vp 3 года назад
Your video is good but MS product are terrible anyone use apple/linux/AWS would know that.
@syscabmcommunity3368
@syscabmcommunity3368 3 года назад
OMG, I really thought this kind of stupid comments passed away when the novices grown up,, but I was wrong
@learnergaa
@learnergaa 2 года назад
@@syscabmcommunity3368 true, why did they even come here in the first place
Далее
LinkedIn CEO: 'Your Job is Changing on You'
8:08
Просмотров 2,6 тыс.
Introduction to Azure Sentinel. Part 1 - Foundations
54:21
Microsoft Sentinel in just 30 minutes
36:20
Просмотров 29 тыс.
Azure Sentinel webinar: Data Collection Scenarios
1:00:29
Microsoft Sentinel 101: Using a Cloud Native SIEM
1:53:43