Monitoring Configuration
The Fastly Log Shipping module is used to ingest user requests, allowing Netacea to monitor and detect bot activity.
Prerequisites
Before Netacea can monitor your platform successfully, please ensure you have:
Provided Netacea with your Fastly IAM Role, if requested.
Had the relevant log shipping endpoints & credentials shared via the Netacea portal.
Provided a list of all known, safe and trusted list users, partners & 3rd party apps. This includes a list of trusted bots & automated tools. Any information on known bad actors is also valuable.
Provided a list of protection use cases and the pathways that are vulnerable to each.
Minimum Required Dataset
To successfully analyze data, the following data will be monitored:
Timestamp
The time which the request was received
IP Address
The IP address from which the request was made
User Agent
The user agent string sent in the header by the client
Method
The HTTP method of the request
Path
The path of the requested resource
Query
The query string of the request
Status
The HTTP status code returned by the server
Referrer
The web page the user followed a link from
Bytes Sent
The Bytes sent as part of the user's request
Protocol
The protocol of the response-request cycle.
Request Time
How long the request took in microseconds.
Request Host
The current Host request header.
JA3 Fingerprint
JA3 is a method for creating SSL/TLS client fingerprints.
In addition to the above standard fields, the Netacea integration will add several custom fields to the log format. These include:
bc_type
, user_id
, integration_type
and integration_version
.
Implementation Steps
Log in to the Fastly web interface.
From the home page, select the appropriate service. You can use the search box to search by ID, name, or domain.
Click the edit configuration button and then select the option to clone the active version. The Domains page appears.
All configuration changes below will be made to the newly cloned version.
Make a note of the currently active version should you need to roll back in the future.
Log Streaming
Navigate to the Logging area.
Click the "Create endpoint" button for Amazon S3
Enter the following details:
Name
Enter a memorable human-readable name for the endpoint, such as Netacea_Logging.
Placement
Format Version Default
Log Format
Timestamp
Bucket Name
The name of the Amazon S3 bucket provided by Netacea portal.
Access Method
The IAM Role ARN or User Credentials provided by Netacea portal.
Period
15
Path
/
Domain
The domain of the Amazon S3 endpoint that has been provided by Netacea.
If not specified, please use s3.eu-west-1.amazonaws.com
.
Select a log line format
Blank
Compression
Gzip
Any option not specified above should be left as the default value.
Log Format
Timestamp
Logging considerations
Fastly allows users to enable Host's feature called "Shielding" that has some benefits like reducing origin load, improving cache hit ratio, etc. Enabling this feature in a Fastly service that uses our Integration results in a duplication of logs.
When configuring Fastly log shipping by default, it will send all requests, including static & media content that is not required by Netacea. In order to solve this issue we need to add a Condition to the service and attach it to Netacea Logging.
Navigate to Conditions area
Click "Create Condition"
Enter the following details in the popup window:
Type
Response
Name
e.g. Netacea_Log_Visit
Apply if
(req.url !~ "/media/" && req.url !~ "/static/") && fastly.ff.visits_this_service == 0
Priority
10 (default)
Click "Save" and navigate to Logging area
Find Netacea Logging and click on the "Attach a condition"
In the popup window, select the newly created condition
Finishing Up
Check you have completed the following steps:
Ensure no error warnings are appearing
You are now ready to deploy the version you have been editing by clicking "Activate".
Log shipping will now be deployed on the service it was configured against. You can verify the deployment is correct by:
Reviewing the active version for the new log shipping job.
Requesting Netacea review internal ingest metrics.
Requesting Netacea validate the data content & format.
Last updated