Table of Contents

Class CustomField

Namespace
Serilog.Sinks.Splunk
Assembly
Serilog.Sinks.Splunk.dll

A Class for storing CustomField. They are sort of key,value pair. In simpler form key as string and value as single string, but could also be key and list of strings.

public class CustomField
Inheritance
CustomField
Inherited Members

Constructors

CustomField(string, List<string>)

Constructor for Name and array of values

public CustomField(string name, List<string> value)

Parameters

name string

Name of field eg TypeOfResource

value List<string>

Array of values that should be connected with field.Eg Backend,Service,Rest

CustomField(string, string)

constructor for a simple fieldname and a value both are strings

public CustomField(string name, string value)

Parameters

name string

Name of filed to be indexed by Splunk. Eg Role,Version,Channel

value string

Value of keypair. Eg. Test,1.08, RestService

Properties

Name

the fieldsname eg: role, version,

public string Name { get; set; }

Property Value

string

ValueList

All values even simple string are stored as a list

public List<string> ValueList { get; set; }

Property Value

List<string>