Not to worry, I'm still learning Python myself so I know it's a bit of a challenge for newbies. Yes, you can use an app called Postman that allows you to execute API commands, I'll run you through how to do this for the event log now, the next steps are assuming you have Postman installed, if you don't, you can find it here.
1) Go to this link and click "Run in Postman" at the top right, this will install the Postman collection.
2) In Postman, click the three dots on the collection, then Edit. Go to the Authorization tab and paste your API key in the value field, then click "update"
.
3) You'll first need to get your organisation ID. To do this, open the collection then go to Organisations > getOrganisations and click "Send". Copy the ID of the organisation you wish to use.
4) Next, we need to select the network you wish to view the event log for. Go to Networks > getOrganizationNetworks. Paste the ID we copied from the previous step into the organizationId field and untick the configTemplateId field like so:
You'll get an output that looks like this, copy the 'id' from the correct network:
5) Final step, now we can use the Events > getNetworkEvents API to fetch all the events from your given network. There are a number of fields you can use to filter the date range and number of events returned. To return events just for your MX, enter 'appliance' in the productType field. In this example, I'll be returning the last 1000 events from my MX:
The networkId is the value we copied from the last step, usually starting with L_ or N_. You should get an output like this:
You can export this into whatever you'd like, it's just JSON.
The fields all have little help/descriptions to assist what data you must enter into them, for example the startingAfter and endingBefore. Hope this helps!