This project installs into an Azure Function in your Azure subscription. Its job is to read NSG Flow Logs from your configured storage account, break the data into chunks that are the right size for your log analytics system to ingest, then transmit the chunks to that system. At present, you may choose from four output bindings: ArcSight, LogStash, Splunk HEC, Event Hub.
NOTE regarding the Event Hub output binding:
Native support for event hubs is not yet available, but would be the preferred method. If you use Splunk and prefer to send NSG flow logs to Splunk using event hub rather than HEC, the event hub output binding will do the job. In Azure Monitor Addon For Splunk, configure the Azure Monitor Diagnostic Logs data input and add a line to TA-folder/bin/app/hubs.json
similar to this:
Example: 'insights-logs-nsgflowlogs': 'resourceId'
When you create the hub (e.g. insights-logs-nsgflowlogs
) set the number of partitions to 4. This is mandatory.
In the Application Settings of your Azure Function:
MyNSGApp
Standard
https://github.com/microsoft/AzureNetworkWatcherNSGFlowLogsConnector
master
DefaultEndpointsProtocol=https;AccountName=yyy;AccountKey=xxx;EndpointSuffix=core.windows.net
DefaultEndpointsProtocol=https;AccountName=yyy;AccountKey=xxx;EndpointSuffix=core.windows.net
arcsight
192.168.1.1
1514
http://mysplunkbox.uksouth.cloudapp.azure.com:8088/services/collector
a77fdc21-0861-4d8b-941c-e1b4c556b4fb
Endpoint=sb://my.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=key
insights-logs-nsgflowlogs
http://myelasticbox.uksouth.cloudapp.azure.com/
greg
P@ssw0rd!
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.