Day 25: Introduction to Subsetting for Beginners

Day 25: Introduction to Subsetting for Beginners

The term “subsetting” might sound complicated, but it simply means choosing a part of a larger dataset. It’s a common task in cybersecurity, data analysis, and IT work. Being able to do this is crucial for analyzing information effectively.

๐ŸŸฃ What is Subsetting?

Subsetting involves filtering or extracting specific pieces of information from a larger dataset.

๐ŸŒŸ Example:- If you have a list of 100 employees in a company and want to find only the names of employees in the IT Department, youโ€™re creating a subset from the original list.

๐ŸŸฃ Why is Subsetting Important in Cybersecurity?

Cybersecurity analysts handle vast amounts of logs, alerts, and system data. Without subsetting, youโ€™d have to manually sift through everything, which is time-consuming and can lead to missing critical threats.

๐Ÿ”ธ It helps concentrate only on relevant data.

๐Ÿ”ธ It minimizes noise in investigations.

๐Ÿ”ธ It speeds up incident response.

To find your Windows computer’s operating system name and version without going through all details, you can use this command:

Win + R, type cmd, and press enter
type systeminfo
Notice the large amount of data.

systeminfo | findstr /B /C:”OS Name” /C:”OS Version”
You will see only two lines are shown.

๐Ÿ”ธ systeminfo- Shows full details about your computer (OS, memory, network, etcโ€ฆ).

๐Ÿ”ธ | (pipe)- Sends the output of one command into another command.

๐Ÿ”ธ findstr- Searches for specific text in the output.

๐Ÿ”ธ /B- Matches only at the beginning of a line.

๐Ÿ”ธ /C:OS Name, /C:OS Version- Looks for exact lines containing OS Name or OS Version.

Instead of scrolling through 50+ lines of data, you will subset it to only the data you need.

Replacing os version with system boot time
systeminfo | findstr /B /C:”System Boot Time” /C:”OS Version”

๐ŸŸฃ Subsetting in Other Contexts

๐Ÿ”ธ Excel- Using filters to show only certain values.

๐Ÿ”ธ Databases- Running a query to retrieve only the relevant rows.

๐Ÿ”ธ Log Analysis- Filtering logs to see only failed login attempts.

๐ŸŸฃ Importance of Subsetting in Cybersecurity

๐Ÿ”ธ Speeds up threat detection- Avoid wasting time on irrelevant data.

๐Ÿ”ธ Improves accuracy- Focus only on essential data.

๐Ÿ”ธ Helps in compliance- Extract only required information for audits.

๐Ÿ”ธ Protects sensitive data- Share only necessary information.

Subsetting is like using a magnifying glass, it lets you focus on the exact data you need while ignoring the rest. For someone entering cybersecurity, learning subsetting will save time and enhance your analytical skills.

โžก๏ธ Do check out the previous blog

๐Ÿ”ฐ If you like the article, please clap (click on the clap option below) ๐Ÿ˜ƒ your support is appreciated ๐Ÿ˜ and also do share it ๐Ÿ˜Š.

Happy Learning!!!๐Ÿ˜Š

Follow me on ๐Ÿ˜Ž:

โœ… Medium

โœ… YouTube

Leave a Reply

Your email address will not be published. Required fields are marked *