Skip to content

Set of scripts to push Custom Event and Custom Log data to New Relic

Notifications You must be signed in to change notification settings

ahealy-newr/newrelic-custom-event-log-push-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

newrelic-custom-event-log-push-scripts

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.

PythonScripts

Prerequisites

Before using these scripts, you will need to:

  1. Have a New Relic account and New Relic API Licence key.
  2. Have Python 3.9 or higher installed on your system.

CustomEvents

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

CustomLogs

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

Usage

Before running the scripts make sure to:

  1. Update the conf.py file with your license key, datacentre and account id that you are targeting
  2. 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

License

This repository is licensed under the MIT License. See the LICENSE file for details.

About

Set of scripts to push Custom Event and Custom Log data to New Relic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages