|
410 | 410 | "destinations": [ |
411 | 411 | "clv2ws1" |
412 | 412 | ], |
413 | | - "transformKql": "source | extend TimeGenerated = now() | extend FirewallName = firewall_name, EventTimestamp = event_timestamp, AvailabilityZone = availability_zone, TCPFlags = tostring(event.tcp.tcp_flags), Syn = tobool(event.tcp.syn), Fin = tobool(event.tcp.fin), Psh = tobool(event.tcp.psh), Ack = tobool(event.tcp.ack), Ecn= tobool(event.tcp.ecn), Rst = tobool(event.tcp.rst),AppProto = tostring(event.app_proto), SrcIp = tostring(event.src_ip), SrcPort = tostring(event.src_port), NetFlowPkts = tostring(event.netflow.pkts), NetFlowBytes = tostring(event.netflow.bytes), NetFlowStart = todatetime(event.netflow.start), NetFlowEnd = todatetime(event.netflow.end), NetFlowAge = tostring(event.netflow.age), NetFlowMinttl = tostring(event.netflow.min_ttl), NetFlowMaxttl = tostring(event.netflow.max_ttl), EventType = tostring(event.event_type) | where EventType == \"netflow\" |extend FlowId = tostring(event.flow_id), DestIp = tostring(event.dest_ip), DestPort = tostring(event.dest_port), Proto = tostring(event.proto) | project-away event, availability_zone, firewall_name", |
| 413 | + "transformKql": "source | extend TimeGenerated = now() | extend FirewallName = firewall_name, EventTimestamp = event_timestamp, AvailabilityZone = availability_zone, TCPFlags = tostring(event.tcp.tcp_flags), Syn = tobool(event.tcp.syn), Fin = tobool(event.tcp.fin), Psh = tobool(event.tcp.psh), Ack = tobool(event.tcp.ack), Ecn= tobool(event.tcp.ecn), Rst = tobool(event.tcp.rst),AppProto = tostring(event.app_proto), SrcIp = tostring(event.src_ip), SrcPort = tostring(event.src_port), NetFlowPkts = tostring(event.netflow.pkts), NetFlowBytes = tostring(event.netflow.bytes), NetFlowStart = todatetime(event.netflow.start), NetFlowEnd = todatetime(event.netflow.end), NetFlowAge = tostring(event.netflow.age), NetFlowMinttl = tostring(event.netflow.min_ttl), NetFlowMaxttl = tostring(event.netflow.max_ttl), EventType = tostring(event.event_type) | where EventType == \"netflow\" |extend FlowId = tostring(event.flow_id), DestIp = tostring(event.dest_ip), DestPort = tostring(event.dest_port), Proto = tostring(event.proto), EventType", |
414 | 414 | "outputStream": "Microsoft-AWSNetworkFirewallFlow" |
415 | 415 | }, |
416 | 416 | { |
|
420 | 420 | "destinations": [ |
421 | 421 | "clv2ws1" |
422 | 422 | ], |
423 | | - "transformKql": "source | extend TimeGenerated = now(), FirewallName = firewall_name, AvailabilityZone = availability_zone, EventTimestamp = event_timestamp, TxId = tostring(event.tx_id), AppProto = tostring(event.app_proto), SrcIp = tostring(event.src_ip), SrcPort = tostring(event.src_port), EventType = tostring(event.event_type) | where EventType == \"alert\" | extend Severity = tostring(event.alert.severity), SignatureId = tostring(event.alert.signature_id), Rev = tostring(event.alert.rev), Signature = tostring(event.alert.signature), AlertAction = tostring(event.alert.action), Category = tostring(event.alert.category), FlowId = tostring(event.flow_id), DestIp = tostring(event.dest_ip), DestPort = tostring(event.dest_port), Proto = tostring(event.proto), VerdictAction = tostring(event.verdict.action), Sni = tostring(event.tls.sni), Version = tostring(event.tls.version), PktSrc = tostring(event.pkt_src), Direction = tostring(event.direction) | project-away event", |
| 423 | + "transformKql": "source | extend TimeGenerated = now(), FirewallName = firewall_name, AvailabilityZone = availability_zone, EventTimestamp = todatetime(event_timestamp), TxId = tostring(event.tx_id), AppProto = tostring(event.app_proto), SrcIp = tostring(event.src_ip), SrcPort = tostring(event.src_port), EventType = tostring(event.event_type) | where EventType == \"alert\" | extend Severity = tostring(event.alert.severity), SignatureId = tostring(event.alert.signature_id), Rev = tostring(event.alert.rev), Signature = tostring(event.alert.signature), AlertAction = tostring(event.alert.action), Category = tostring(event.alert.category), FlowId = tostring(event.flow_id), DestIp = tostring(event.dest_ip), DestPort = tostring(event.dest_port), Proto = tostring(event.proto), VerdictAction = tostring(event.verdict.action), Sni = tostring(event.tls.sni), Version = tostring(event.tls.version), PktSrc = tostring(event.pkt_src), Direction = tostring(event.direction), EventType", |
424 | 424 | "outputStream": "Microsoft-AWSNetworkFirewallAlert" |
425 | 425 | }, |
426 | 426 | { |
|
430 | 430 | "destinations": [ |
431 | 431 | "clv2ws1" |
432 | 432 | ], |
433 | | - "transformKql": "source | extend TimeGenerated = now(), FirewallName = firewall_name, AvailabilityZone = availability_zone, EventTimestamp = event_timestamp, SrcIp = tostring(event.src_ip), SrcPort = tostring(event.src_port), DestIp = tostring(event.dest_ip), DestPort = tostring(event.dest_port), Sni = tostring(event.sni), LeafCertificateFingerprint = tostring(event.leaf_cert_fpr), Status = tostring(event.status), Action = tostring(event.action), ErrorMessage = tostring(event.tls_error.error_message) | project-away event", |
| 433 | + "transformKql": "source | extend TimeGenerated = now(), FirewallName = firewall_name, AvailabilityZone = availability_zone, EventTimestamp = todatetime(event_timestamp), SrcIp = tostring(event.src_ip), SrcPort = tostring(event.src_port), DestIp = tostring(event.dest_ip), DestPort = tostring(event.dest_port), Sni = tostring(event.sni), LeafCertificateFingerprint = tostring(event.leaf_cert_fpr), Status = tostring(event.status), Action = tostring(event.action), ErrorMessage = tostring(event.tls_error.error_message)", |
434 | 434 | "outputStream": "Microsoft-AWSNetworkFirewallTls" |
435 | 435 | } |
436 | 436 | ] |
|
718 | 718 | "defaultValue": "[parameters('workspace')]", |
719 | 719 | "type": "securestring" |
720 | 720 | }, |
| 721 | + "streamName": { |
| 722 | + "type": "array" |
| 723 | + }, |
721 | 724 | "connectorDefinitionName": { |
722 | 725 | "defaultValue": "Amazon Web Services NetworkFirewall (via Codeless Connector Platform) (Preview)", |
723 | 726 | "type": "securestring", |
|
743 | 746 | "defaultValue": "queueUrl", |
744 | 747 | "type": "securestring", |
745 | 748 | "minLength": 1 |
746 | | - }, |
747 | | - "streamName": { |
748 | | - "defaultValue": "streamName", |
749 | | - "type": "array", |
750 | | - "minLength": 1 |
751 | 749 | } |
752 | 750 | }, |
753 | 751 | "variables": { |
|
787 | 785 | "kind": "AmazonWebServicesS3", |
788 | 786 | "properties": { |
789 | 787 | "connectorDefinitionName": "AwsNetworkFirewallCcpDefinition", |
790 | | - "destinationTable": "AWSNetworkFirewallAlert", |
| 788 | + "destinationTable": "[[concat(parameters('streamName')[0],'_CL')]", |
791 | 789 | "dataTypes": { |
792 | 790 | "logs": { |
793 | 791 | "state": "enabled" |
794 | 792 | } |
795 | 793 | }, |
796 | 794 | "dcrConfig": { |
797 | | - "streamName": "Custom-AWSNetworkFirewall-AlertLog", |
| 795 | + "streamName": "[[parameters('streamName')[0]]", |
798 | 796 | "dataCollectionEndpoint": "[[parameters('dcrConfig').dataCollectionEndpoint]", |
799 | 797 | "dataCollectionRuleImmutableId": "[[parameters('dcrConfig').dataCollectionRuleImmutableId]" |
800 | 798 | }, |
|
817 | 815 | "kind": "AmazonWebServicesS3", |
818 | 816 | "properties": { |
819 | 817 | "connectorDefinitionName": "AwsNetworkFirewallCcpDefinition", |
820 | | - "destinationTable": "AWSNetworkFirewallFlow", |
| 818 | + "destinationTable": "[[concat(parameters('streamName')[0],'_CL')]", |
821 | 819 | "dataTypes": { |
822 | 820 | "logs": { |
823 | 821 | "state": "enabled" |
824 | 822 | } |
825 | 823 | }, |
826 | 824 | "dcrConfig": { |
827 | | - "streamName": "Custom-AWSNetworkFirewall-FlowLog", |
| 825 | + "streamName": "[[parameters('streamName')[0]]", |
828 | 826 | "dataCollectionEndpoint": "[[parameters('dcrConfig').dataCollectionEndpoint]", |
829 | 827 | "dataCollectionRuleImmutableId": "[[parameters('dcrConfig').dataCollectionRuleImmutableId]" |
830 | 828 | }, |
|
847 | 845 | "kind": "AmazonWebServicesS3", |
848 | 846 | "properties": { |
849 | 847 | "connectorDefinitionName": "AwsNetworkFirewallCcpDefinition", |
850 | | - "destinationTable": "AWSNetworkFirewallTls", |
| 848 | + "destinationTable": "[[concat(parameters('streamName')[0],'_CL')]", |
851 | 849 | "dataTypes": { |
852 | 850 | "logs": { |
853 | 851 | "state": "enabled" |
854 | 852 | } |
855 | 853 | }, |
856 | 854 | "dcrConfig": { |
857 | | - "streamName": "Custom-AWSNetworkFirewall-TlsLog", |
| 855 | + "streamName": "[[parameters('streamName')[0]]", |
858 | 856 | "dataCollectionEndpoint": "[[parameters('dcrConfig').dataCollectionEndpoint]", |
859 | 857 | "dataCollectionRuleImmutableId": "[[parameters('dcrConfig').dataCollectionRuleImmutableId]" |
860 | 858 | }, |
|
0 commit comments