Code Monkey home page Code Monkey logo

diagnostics-eventflow-splunk's Introduction

diagnostics-eventflow-splunk

Introduction

Extensions to Microsoft Diagnostics EventFlow to output to Splunk.

Build Status

Build Status NuGet

Outputs

Outputs

Splunk

Nuget Package: Spotsoft.Diagnostics.EventFlow.Outputs.Splunk

This output writes data to a Splunk HTTP Event Collector (HEC). Here is an example showing all possible settings:

{
  "inputs": [
    {
      "type": "Microsoft.Extensions.Logging"
    }
  ],
  "filters": [
  ],
  "outputs": [
    {
      "type": "SplunkOutput",
      "serviceBaseAddress": "https://hec.mysplunkserver.com:8088",
      "authenticationToken": "B5A79AAD-D822-46CC-80D1-819F80D7BFB0",
      "host": "localhost",
      "index": "main",
      "source": "my source",
      "sourceType": "_json",
      "ignoreSslCertificateErrors" : "true",
      "maxRetryAttempts" : "5"
    }
  ],
  "schemaVersion": "2016-08-11",

  "extensions": [
    {
      "category": "outputFactory",
      "type": "SplunkOutput",
      "qualifiedTypeName": "Spotsoft.Diagnostics.EventFlow.Outputs.Splunk.SplunkOutputFactory, Spotsoft.Diagnostics.EventFlow.Outputs.Splunk"
    }
  ]
}
Field Values/Types Required Description
type "SplunkOutput" Yes Specifies the output type. For this output, it must be "SplunkOutput".
serviceBaseAddress string Yes Base address for the Splunk HTTP Event Collector (HEC) (excluding the API URI e.g. services/collector/event/1.0).
authenticationToken string Yes Defines the HEC token as configured in Splunk. This token can be used to configure the default index, source and sourcetype associated with all events which use it.
host string No The host associated with the events. If left blank this will default to the name of the server which is executing the process using EventFlow.
index string No The Splunk index where the event will be stored. Leave blank unless you specifically want to override the default index associated with the HEC token.
source string No The Splunk source associated with the event. Leave blank unless you specifically want to override the default source associated with the HEC token.
sourcetype string No The Splunk source type associated with the event. Leave blank unless you specifically want to override the default source type associated with the HEC token.
ignoreSslCertificateErrors boolean No When set to true can be used against a Splunk HEC with a self-signed SSL certificate (only recommended for testing purposes).
maxRetryAttempts integer No Maximum number of attempts to call the Splunk HEC API if it returns a server error HTTP Status Code (i.e. >= 500). This uses an exponential backoff algorithm.

Splunk Dashboard

The events might end up looking something like this on the Splunk dashboard:

Splunk Dashboard Example

diagnostics-eventflow-splunk's People

Contributors

hortha avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

afshinalizadeh

diagnostics-eventflow-splunk's Issues

Can't find the code ?

Hello,

Maybe I'm not looking in the right place, but I couldn't find your code for the Splunk Output with eventFlow.

It would really help me.

Thank you in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.