This repository contains scripts for pushing custom event and custom log data to New Relic's Telemetry Data Platform (TDP) using the Events and Logs API.
Before using these scripts, you will need to:
- Have a New Relic account and New Relic API Licence key.
- Have Python 3.9 or higher installed on your system.
py_event_push.py
: A Python script for pushing events to New Relic Insights using the Events API.
event_example_blob.json
: JSON file with example payload for event data
py_log_push.py
: A Python script for pushing logs to New Relic's TDP using the Log API.
log_example_blob.json
: JSON file with example payload for log data
Before running the scripts make sure to:
- Update the conf.py file with your license key, datacentre and account id that you are targeting
- For the py_push_event.py script, update the account id in the url value
To use the py_event_push.py and py_log_push.py script directly, simply run:
python py_log_push.py
python py_event_push.py
This repository is licensed under the MIT License. See the LICENSE file for details.