Logary.Targets.SumoLogic


Logary.Targets.SumoLogic

A Logary target for the SumoLogic log management and data analytics service

The Logary.Targets.SumoLogic library can be installed from NuGet:
PM> Install-Package Logary.Targets.SumoLogic

Example

This example demonstrates configuring the target with Logary.

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
#r "Logary"
#r "Logary.Targets.SumoLogic"
open Hopac
open Logary
open Logary.Configuration
open Logary.Targets

let sumoEndpoint =
  System.Uri "https://endpoint1.collection.us2.sumologic.com/receiver/v1/http/HTTP_COLLECTOR_ENDPOINT"

let li =
  Promise.start
    ( withLogary "Example for using SumoLogic target"
      ( withTargets [
          SumoLogic.create (SumoLogicConf.create sumoEndpoint ExpandTemplates) "sumologic"
        ] >>
        withRules [
          Rule.createForTarget "sumologic"
        ]
      )
    )

Check out the Logary docs for more information.

Samples & documentation

The library comes with comprehensible documentation automatically generated from *.fsx files in the content folder. The API reference is automatically generated from Markdown comments in the library implementation.

  • API Reference contains automatically generated documentation for all types, modules and functions in the library. This includes additional brief samples on using most of the functions.

Contributing and copyright

The project is hosted on GitHub where you can report issues, fork the project and submit pull requests. If you're adding a new public API, please also consider adding samples that can be turned into a documentation. You might also want to read the library design notes to understand how it works.

The library is available under the Apache 2.0 license, which allows modification and redistribution for both commercial and non-commercial purposes. For more information see the License file in the GitHub repository.

val sumoEndpoint : System.Uri

Full name: Index.sumoEndpoint
namespace System
Multiple items
type Uri =
  new : uriString:string -> Uri + 5 overloads
  member AbsolutePath : string
  member AbsoluteUri : string
  member Authority : string
  member DnsSafeHost : string
  member Equals : comparand:obj -> bool
  member Fragment : string
  member GetComponents : components:UriComponents * format:UriFormat -> string
  member GetHashCode : unit -> int
  member GetLeftPart : part:UriPartial -> string
  ...

Full name: System.Uri

--------------------
System.Uri(uriString: string) : unit
System.Uri(uriString: string, uriKind: System.UriKind) : unit
System.Uri(baseUri: System.Uri, relativeUri: string) : unit
System.Uri(baseUri: System.Uri, relativeUri: System.Uri) : unit
val li : obj

Full name: Index.li
Fork me on GitHub