Quantcast
Channel: Cloud Training Program
Viewing all articles
Browse latest Browse all 1907

VCN Flow Logs for Oracle Cloud Infrastructure (OCI)

$
0
0

[New Update] Oracle VCN Flow Logs now available in the commercial realm

Ever wondered what goes in and out of your network in the cloud and how? VCN Flow Logs allows you to view connection information for traffic within, and in and out of your virtual cloud network (VCN).

In this blog post, we cover VCN Flow logs, integration options with other services, their use cases, and how to configure and manage VCN flow logs in OCI.

Want to know more about networking in OCI? Read our blog on Networking In Oracle Cloud (OCI): VCN, Subnet, Gateways, Peering, Transit Routing.

Index:

What’s New?

A few months back, Oracle announced the Limited Availability (LA) release of VCN Flow Logs for Oracle Cloud Infrastructure. To use this feature, your cloud tenancy has to be added to the LA program first, which you have to request. After you’ve added to the program, you’ll receive an e-mail within 3-5 days with usage instructions.

Now the VCN flow logs are made available with general availability for Oracle Cloud Infrastructure. Although VCN flow logs are still not available in the Government Cloud realms.

What Is VCN Flow Logs?

Virtual Cloud Network (VCN) in Oracle Cloud Infrastructure can have one or more Virtual Network Interface Cards (VNICs) for each instance, for communication within and outside of the VCN. OCI Networking uses security lists and network security groups to determine what traffic is allowed in and out of a given VNIC.

VCN flow logs can be set up to help you troubleshoot your security lists or audit the traffic in and out of your VNICs. Flow logs record details about the traffic that has been accepted or rejected based on the security list rules. All the traffic passing through your VCN can be seen and analyzed by the use of VCN flow logs. The information provided by flow logs can be used for network monitoring, troubleshooting, and compliance.

VCN Flow Logs keeps a detailed record of every flow that passes through the VCN and presents that data for analysis in the Oracle Cloud Infrastructure Logging service. The data includes information about:

  • the source and destination of the traffic,
  • the volume of traffic
  • the accept or reject policy action taken, based on your network security rules

Integration Options

The VCN Flow logs integration with the Logging service, allows you to view, search, export, and stream log files. Oracle also provides integration of VCN Flow logs with data export and streaming options for the ingestion of your flow logs.

Flow logs can be archived to object storage bucket for data retention needs or you can stream the logs in under 10 minutes to your SIEM or log management platform.

integration options flow logs

Use Cases

There are different use cases where these VCN flow logs can be helpful. VCN Flow logs can be used for the following:

Troubleshooting and Monitoring

Flow logs can be used for troubleshooting and monitoring. The logs show whether security rules “allow” or “deny” the traffic and it also shows attempts to connect to the database from the on-premises environment as shown in the below figure.

Flow logs troubleshooting

Regulatory and Compliance

Regulatory, compliance, and other governance requirements were previously only achievable through third-party network virtual tools or host-based agents. VCN flow logs and data-retention options now provide visibility to meet financial, healthcare, and other regulated industry requirements.

compliance

Configure VCN Flow Logs

Integration with the Logging service allows you to enable, view, and manage your flow log configuration. Flow logs are enabled and managed using the Logging service. Flow logs enabled for a given subnet allows the traffic to be logged for all the existing and future VNICs in that subnet.

Enable flow logs

1. In the cloud console navigation menu, go to Logging and click on Log Groups.

console log group

2. Click on Create Log Group. Enter a name and description and click Create.

Log Groups

3. Go to logs tab, click on Enable Service Log.

Create Log Group

4. Enable flow logs on your subnet by clicking on navigation menu, then go to Logging, click on Logs.

Logs menu

5. On the Logs tab, click Enable Service Log.

Logs tab

6. Select the Flow Logs service, and select your subnet as the resource. Enter a value in Log Name, field, and click Enable Log.

Let’s say there is traffic for the given subnet, it can take up to 10 minutes for the first flow logs to be available. After that, you will receive batches of flow logs every minute.

Enable Resource log

7. You can also enable flow logs through the Logging tab on your subnet, which will walk you through the same process.

subnet log tab

Accessing Flow Logs

Flow logs can be easily accessed from Oracle Cloud Logging Service Search.

Logging Console Viewer

You can view and search VCN flow logs from the Logging service’s Console-based viewer which provides easy to run console and flexible indexing of your recent logs. This provides different search parameters to filter the flow logs.

To access the logs, go to the navigation menu, click on Logging, and then click on Search.

View flow logs

You can also visualize the search results using the Visualize tab as shown below.

visualization traffic

Export Flow Logs To Object Storage

Oracle Logging Service Connector Hub provides a feature that enables you to export your flow logs to the Object Storage bucket using service connectors, taking full advantage of retention based on life-cycle policies.

When a service connector runs, it receives data from the source service, completes optional tasks on the data (such as filtering), and then moves the data to the target service.

service connector hub

Conclusion

VCN Flow Logs provides visibility into communications within your network. They are helpful in monitoring the traffic going in and out of your virtual cloud networks. In this post, I have covered a brief overview of VCN flow logs, their use cases, and how to configure VCN flow logs for your subnet and export the logs to object storage.

Related/References

Next Task For You

Begin your journey towards becoming an Oracle Cloud Architect by Joining the FREE Masterclass on How To Become Oracle Cloud Architect in 8 Weeks.

Click on the image below to Register for the FREE Masterclass NOW!

The post VCN Flow Logs for Oracle Cloud Infrastructure (OCI) appeared first on Cloud Training Program.


Viewing all articles
Browse latest Browse all 1907

Trending Articles