November 23, 2017
Get the firewall logs for an arbitrary IP address.

Important manual pages:

Author: SoftLayer Technologies, Inc. <>

import SoftLayer
import json

USERNAME = 'set me'
API_KEY = 'set me'

# The ip address to get the logs.
ip = ""

client = SoftLayer.Client(username=USERNAME, api_key=API_KEY)
ipService = client['SoftLayer_Network_Subnet_IpAddress']

    subnetIp = ipService.getByIpAddress(ip)
    logs = ipService.getSyslogEventsOneDay(id=subnetIp['id'])
    print(json.dumps(logs, sort_keys=True, indent=2, separators=(',', ': ')))
except SoftLayer.SoftLayerAPIError as e:
    print("Unable to get the logs. faultCode=%s, faultString=%s" % (e.faultCode, e.faultString))


If this article contains any error, or leaves any of your questions unanswered, please help us out by opening up a github issue.
Open an issue