Difference between revisions of "F5 Big IP Monitoring"

From UVOO Tech Wiki
Jump to navigation Jump to search
Line 20: Line 20:
  
 
https://clouddocs.f5.com/products/extensions/f5-telemetry-streaming/latest/event-listener.html
 
https://clouddocs.f5.com/products/extensions/f5-telemetry-streaming/latest/event-listener.html
 +
 +
https://pkg.go.dev/github.com/scottdware/go-bigip
 +
```
 +
// package bigip
 +
 +
package main
 +
 +
import (
 +
        "fmt"
 +
        "github.com/scottdware/go-bigip"
 +
)
 +
 +
func main() {
 +
        // Connect to the BIG-IP system.
 +
        fmt.Println("foo")
 +
        f5 := bigip.NewSession("host", "user", "pass", nil)
 +
        fmt.Println("bar")
 +
 +
        // Get a list of all VLAN's, and print their names to the console.
 +
        vlans, err := f5.Vlans()
 +
        if err != nil {
 +
                fmt.Println(err)
 +
        }
 +
 +
        for _, vlan := range vlans.Vlans {
 +
                fmt.Println(vlan.Name)
 +
        }
 +
 +
        pools, err := f5.Pools()
 +
        if err != nil {
 +
                fmt.Println(err)
 +
        }
 +
 +
        for _, pool := range pools.Pools {
 +
                fmt.Println(pool.Name)
 +
        }
 +
 +
}
 +
```

Revision as of 17:49, 22 February 2022

Going to try and get telemetry streaming working. Nice thing no firewalls to worry about.

https://help.sumologic.com/07Sumo-Logic-Apps/22Security_and_Threat_Detection/F5_-_BIG-IP_LTM/01Collect_Logs_for_the_F5_-_BIG-IP_LTM_App

https://clouddocs.f5.com/products/extensions/f5-telemetry-streaming/latest/

https://clouddocs.f5.com/products/extensions/f5-telemetry-streaming/latest/setting-up-consumer.html#sumologic-ref

https://help.sumologic.com/03Send-Data/Sources/02Sources-for-Hosted-Collectors/HTTP-Source

https://help.sumologic.com/01Start-Here/Quick-Start-Tutorials

https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/userguide/installation.html

https://clouddocs.f5.com/products/extensions/f5-telemetry-streaming/latest/event-listener.html

https://pkg.go.dev/github.com/scottdware/go-bigip

// package bigip

package main

import (
        "fmt"
        "github.com/scottdware/go-bigip"
)

func main() {
        // Connect to the BIG-IP system.
        fmt.Println("foo")
        f5 := bigip.NewSession("host", "user", "pass", nil)
        fmt.Println("bar")

        // Get a list of all VLAN's, and print their names to the console.
        vlans, err := f5.Vlans()
        if err != nil {
                fmt.Println(err)
        }

        for _, vlan := range vlans.Vlans {
                fmt.Println(vlan.Name)
        }

        pools, err := f5.Pools()
        if err != nil {
                fmt.Println(err)
        }

        for _, pool := range pools.Pools {
                fmt.Println(pool.Name)
        }

}