networkapiaudit_impl

package
v0.59.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ListLogEntriesTask = gcpcommon.NewStructuredListLogEntriesTask(&networkAPIListLogEntriesTaskSetting{})
View Source
var LogGrouperTask = inspectiontaskbase.NewLogGrouperTask(networkapiaudit.LogGrouperTaskID, networkapiaudit.ListLogEntriesTaskID.Ref(),
	func(ctx context.Context, l *log.Log) string {
		audit, err := gcpcommon.ExtractGCPAuditLog(l.NodeReader)
		if err != nil {
			return "unknown"
		}
		return audit.ResourceName
	},
)

LogGrouperTask groups logs by the NEG resource name.

LogIngesterTask is the task id to finalize the logs to be included in the final output.

View Source
var LogToTimelineMapperTask = inspectiontaskbase.NewLogToTimelineMapperTask(networkapiaudit.LogToTimelineMapperTaskID, &networkAPITimelineMapper{},
	inspectioncore.FeatureTaskLabel(`GCE Network Logs`,
		`Gather GCE Network API logs to visualize the provisioning and status transitions of Network Endpoint Groups (NEGs) on timelines.`,
		7000,
		true,
	),
)

LogToTimelineMapperTask registers the mapper to resolve network status in timeline.

Functions

func GenerateGCPNetworkAPIStructuredQuery

func GenerateGCPNetworkAPIStructuredQuery(taskMode inspectioncore.InspectionTaskModeType, negNames []string) []*logestimator.StructuredLogQuery

GenerateGCPNetworkAPIStructuredQuery generates a structured query slice for network API logs.

func Register

func Register(registry coreinspection.InspectionTaskRegistry) error

Register registers all googlecloudlognetworkapiaudit inspection tasks to the registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL