https://github.com/sam-martin/pagerduty2splunk
A tool for pushing PagerDuty logs to Splunk
https://github.com/sam-martin/pagerduty2splunk
Last synced: about 1 year ago
JSON representation
A tool for pushing PagerDuty logs to Splunk
- Host: GitHub
- URL: https://github.com/sam-martin/pagerduty2splunk
- Owner: Sam-Martin
- License: apache-2.0
- Created: 2016-05-30T12:09:48.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-30T20:47:46.000Z (about 10 years ago)
- Last Synced: 2025-03-06T00:48:05.037Z (over 1 year ago)
- Language: Python
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.md
Awesome Lists containing this project
README
PagerDuty2Splunk |pypiversion| |travisbuild|
==============================================
This module allows you to take logs from PagerDuty and push them into Splunk for analysis.
https://github.com/Sam-Martin/PagerDuty2Splunk
----
Installation
--------------
Provided you have Python installed, you can simply run:
.. code-block::
pip install pagerduty2splunk
Examples
--------
**Relative:** Push logs between yesterday and three days ago to Splunk:
.. code-block::
pagerduty2splunk --log=INFO --start=1 --end=3 --splunk-token=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX --splunk-instance-id=prd-X-XXXXX --pagerduty-token=XXX-XXXXXXXXXXXXXXXX
**Absolute**: Push logs from 2016-01-01 to 2016-01-05 to Splunk:
.. code-block::
pagerduty2splunk --log=INFO --start=2016-01-01 --end=2015-01-05 --splunk-token=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX --splunk-instance-id=prd-X-XXXXX --pagerduty-token=XXX-XXXXXXXXXXXXXXXX
Arguments
----------
* **splunk-instance-id** is the subdomain of your Splunk instance in Splunk cloud
* **splunk-token** is the token of your `HTTP Event Collector`_.
* **pagerduty-token** is your **V2** API token (see `Generating an API Key`_ for more details).
.. _HTTP Event Collector: http://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector
.. _Generating an API Key: https://support.pagerduty.com/hc/en-us/articles/202829310-Generating-an-API-Key
.. |pypiversion| image:: https://img.shields.io/pypi/v/pagerduty2splunk.svg
:target: https://pypi.python.org/pypi?name=pagerduty2splunk&:action=display
.. |travisbuild| image:: https://travis-ci.org/Sam-Martin/PagerDuty2Splunk.svg?branch=master
:target: https://travis-ci.org/Sam-Martin/PagerDuty2Splunk