Investigate in Search, and keep it in a notebook
Fetch the whole events behind a case from your SIEM, follow a user and an address through a week of logs, and keep what you found in a notebook linked to the case.
Goal
You can search your SIEM from Studio for the events behind a case, and follow a user or an address from one event to the next. You have a notebook, linked to your case, that holds your notes and a search with its results as they were when it ran.
Before you start
Open Search → Search. The page reads Search your data lake, or a connected SIEM, for investigations. Every search is read-only and audited. Each search is a dataset, an optional filter and a time range. Under Try: are datasets your SIEM holds. Guided is the mode you need: SPL, named after your SIEM's language, is for writing a query by hand.

Search a.morgan's week. Type
aws:cloudtrailin the dataset box anda.morganin the filter box, choose Last 7 days and press Search. The count reads 100 results, above a chart of when they happened and a table of the events, newest first.100 is as many as Search shows. On the example install a.morgan has more than that in the week, so these are the newest 100. When a search reads exactly 100, narrow it before you count anything.

Open the newest sign-in. Click the top row, a
ConsoleLogin. The whole event opens:sourceIPAddressis10.20.5.41, one of the case's addresses,userNameisa.morgan, and underadditionalEventData,MFAUsedis"No". UnderresponseElements,ConsoleLoginis"Success": this sign-in worked. That field was not in the alert.Open a few more
ConsoleLoginrows. Some readMFAUsed"Yes". a.morgan has MFA, then, but the account lets them sign in without it.The list on the left holds the events' fields as well as Splunk's own, each with how many values it takes in these results: sourceIPAddress has 37, and responseElements.ConsoleLogin 2. To follow a value from an event, type it in the filter box, as the next step does.

Follow the address. Replace the filter with
10.20.5.41and press Search. 47 results, and theuserNamein them is not only a.morgan's: userIdentity.userName, in the list of fields, reads 8. Eight accounts used this address in the week, among themp.desai,j.okaforand the service accountsvc_backup.An address that many accounts use, in a private range such as
10.x.x.x, is usually a shared one: an office, a VPN or a jump host. That makes a stranger at the keyboard less likely, though it does not rule one out.

Start a notebook. Open Search → Notebooks. It reads Saved investigations: notes and Search results, kept together. Everyone with access to the workspace can read them. Press New notebook. The dialog asks for a name: Give the investigation a name. You can link it to a case and add notes and searches next. Name it after what you are looking at, such as a.morgan: console sign-ins without MFA, and press Create.

Link it to the case, and write a note. The notebook opens empty, with Case: Not linked at the top. Open that list and choose your case. A link appears beside it, Open case, which opens the case's page. The case lists the notebook too: its Investigation tab gains a count, and under Investigations the notebook is named, with a link back. Then press Add note, write what you found in the box, which takes Markdown, and press Save.
The last line of that note is the alert you dismissed in Open a case, or dismiss: a sign-in without MFA from
10.20.1.66whoseConsoleLoginreads"Failure". The detection fired on it all the same. Search for10.20.1.66to see it. Lesson 5 takes that back to the people who wrote the detection.

Read what the notebook kept. The search cell names its query,
aws:cloudtrail contains "a.morgan", and under it Last 7 days as of, the time, and who ran it. Its events, fields and chart are saved with it. Anyone who opens the notebook next week sees these results as they were, not a new search.

You should now see
A notebook in Search → Notebooks, linked to your case, with a note and a saved search. You know four things the case did not tell you: the sign-ins worked, a.morgan has MFA but does not have to use it, 10.20.5.41 is shared by eight accounts, and the detection also fires on a sign-in that failed.
Your task, Check a.morgan's other console sign-ins in Search, is done. You tick it when you close the case, in lesson 4.

