<PackageReference Include="Serilog.Sinks.Splunk" Version="5.2.1-dev-00216" />

Serilog.Sinks.Splunk.CustomField

public class CustomField
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 string Name { get; set; }

the fieldsname eg: role, version,

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

All values even simple string are stored as a list

public CustomField()

Default constructor for deserialization from configuration (e.g. appsettings.json).

public CustomField(string name, string value)

constructor for a simple fieldname and a value both are strings

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

Constructor for Name and array of values