Important Details Flashcards
(47 cards)
Basic SQL commands
SELECT, INSERT, UPDATE, DELETE. These are the declarative verbs
SELECT statement order
FROM: specifies the table
WHERE: specifies the conditions
GROUP BY: groups results by one or more columns
ORDER BY: orders the results by rows
LIMIT: limits the number of records returned based on a specified value
OFFSET: offsets the results by the number specified
ORDER BY syntax
ORDER BY column_name/column_number asc/desc
Ascending is default for this clause
NULLIF
Takes two arguments. If the first two are equal, then NULL is returned. otherwise, the first argument is returned. NULL represents unknown data, not zero. Used with SELECT
Aggregate Function vs Normal Functions
Aggregate uses the entire column of data as their input and produce a single output. Normal operates on each element in the column
COALESCE
Returns the first non-NULL expression among its arguments. NULL is returned only if all arguments are NULL. Used with SELECT
Aggregate function examples
Function(Expression)
AVG
COUNT - number of rows, even if some columns contain NULL value
FIRST
LAST
MAX
MIN
SUM
Out of ordinary operators
% - Modulus. Divides left hand operand by right hand operand and returns remainder
<> - Not equal to
!< Not less than
!> not greater than
How to retrieve root domain of a device within a statement
root_domain(hostname)
Fabric with multiple FGTs
The fabric eliminates duplicate logs. Each fortigate will generate logs as long as the event wasn’t logged by the previous fortigate along the path of traffic. Consider what configuration the fortigate has according to the question. Such as if only one of the FGT is performing SNAT, then that FGT will be the only one that generates the SNAT traffic log. Apply for other things like web filtering, wherever it is being performed, it will generate the UTM logs
FortiAnalyzer Fabric
Two Modes: Supervisor - One per fabric, acts as the root
Member - Sends information to supervisor. Does NOT forward their logs to the supervisor
Must be configured in same time zone.
Collectors cannot be members.
Supervisor includes only the following modules:
Device Manager
Log view
Incident & Events
System Settings
Management Extensions
ADOMS are enabled by default (T or F)
False
Log Phases
1: Raw - logs received from registered device. No immediate analytic support, viewable in Log Browse, .log file type
2: Indexed (Analytics Logs) - Added to SQL database and indexed. Has immediate analytic support, considered “online.” Can view them in Log View, FortiView, Events, and Reports
3: Archived - Compressed and rolled over in log file saved with .gz extension. No immediate analytic support. Considered “offline,” viewable in Log Browse
Log View Modes
Filter(GUI) and Text(Manual)
Can you sort and customize Raw logs? (Yes or No)
No. Only formatted logs
You can only disable FortiView via CLI? (T or F)
True
IOC
Indicators of Compromise: Requires a FortiGuard subscription
Two IOC statuses
Infected: Indicates a real breach. A match or matchers of the blacklisted IPs or domain generation algorithms (DGAs) have been found in the web logs
Suspicious: Indicates a possible breach with varying degrees of confidence
Two Categories to filter IOC entries
Blocklist: Indicates items marked as infected
Suspicious: indicates a match was found in the suspicious list in the IOC database. FortiAnalyzer flags the endpoint for further analysis, compares the flagged log entries with the endpoint’s previous statistics for the same day, and then updates the score. If the score exceeds the threshold, that endpoint is listed or updated in Compromised Hosts
Log Fetching Details
Log Fetching can only happen between two FortiAnalyzer devices. A FortiAnalyzer device can perform either the fetch server or client role, and it can perform two roles at the same time with different FortiAnalyzer devices at the other end.
You can establish only one log-fetching session at a time between two FAZ devices
Should run same firmware version
Source and Destination ADOM are of the same type
Destination ADOM must have enough space allocated for the incoming logs
Must add the devices to Device manager before you can see their logs in the client
Data Policy on the client must retain logs of the specified time period
Command to see the SQL insertion status
diagnose sql status sqlplugind
Log Rate vs Message Rate
One log message can consist of multiple logs in LZ4 format. Thus, it is normal for the msgrate to be lower then lograte
Insert Rate vs. Receive Rate
Insert Rate = SQL Insertion Rate
Handled by sqlplugind
Receive Rate = Raw Receiving Rate
Handled by fortilogd
Log Insert Lag Time
Amount of time between log received and log inserted in the database