<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to set the Metadata field using the Splunk .Net logging library HttpEventCollectorSender? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-the-Metadata-field-using-the-Splunk-Net-logging/m-p/254805#M48946</link>
    <description>&lt;P&gt;Before invoking this HttpEventCollectorSender constructor, create an object of type HttpEventCollectorEventInfo and set it's Metadata property. Details of HttpEventCollectorEventInfo class here.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/splunk/splunk-library-dotnetlogging/blob/3ca85b1e51082d8c0dfe9815c1006e252656efae/src/Splunk.Logging.Common/HttpEventCollectorEventInfo.cs"&gt;https://github.com/splunk/splunk-library-dotnetlogging/blob/3ca85b1e51082d8c0dfe9815c1006e252656efae/src/Splunk.Logging.Common/HttpEventCollectorEventInfo.cs&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The Metadata is a nested class within HttpEventCollectorEventInfo class with following attributes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            public string Index { get; private set; }
            public string Source { get; private set; }
            public string SourceType { get; private set; }
            public string Host { get; private set; }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 30 Aug 2016 21:37:34 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-08-30T21:37:34Z</dc:date>
    <item>
      <title>How to set the Metadata field using the Splunk .Net logging library HttpEventCollectorSender?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-the-Metadata-field-using-the-Splunk-Net-logging/m-p/254804#M48945</link>
      <description>&lt;P&gt;I'm using the Splunk .Net logging library on Github to interface to the Splunk HTTP Event Collector.&lt;/P&gt;

&lt;P&gt;My question is, how to set the Metadata field using the following example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        var ecSender = new HttpEventCollectorSender(new Uri("https://localhost:8088"),
            "AAAAAAAAAAAAAAAAAAAAAAA",
            how to set this Metadata field - I want it to be source="AppA",
            HttpEventCollectorSender.SendMode.Sequential,
            0,
            0,
            0,
            middleware.Plugin
        );
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 21:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-the-Metadata-field-using-the-Splunk-Net-logging/m-p/254804#M48945</guid>
      <dc:creator>sfortier99</dc:creator>
      <dc:date>2016-08-30T21:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the Metadata field using the Splunk .Net logging library HttpEventCollectorSender?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-the-Metadata-field-using-the-Splunk-Net-logging/m-p/254805#M48946</link>
      <description>&lt;P&gt;Before invoking this HttpEventCollectorSender constructor, create an object of type HttpEventCollectorEventInfo and set it's Metadata property. Details of HttpEventCollectorEventInfo class here.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/splunk/splunk-library-dotnetlogging/blob/3ca85b1e51082d8c0dfe9815c1006e252656efae/src/Splunk.Logging.Common/HttpEventCollectorEventInfo.cs"&gt;https://github.com/splunk/splunk-library-dotnetlogging/blob/3ca85b1e51082d8c0dfe9815c1006e252656efae/src/Splunk.Logging.Common/HttpEventCollectorEventInfo.cs&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The Metadata is a nested class within HttpEventCollectorEventInfo class with following attributes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;            public string Index { get; private set; }
            public string Source { get; private set; }
            public string SourceType { get; private set; }
            public string Host { get; private set; }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2016 21:37:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-the-Metadata-field-using-the-Splunk-Net-logging/m-p/254805#M48946</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-30T21:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the Metadata field using the Splunk .Net logging library HttpEventCollectorSender?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-set-the-Metadata-field-using-the-Splunk-Net-logging/m-p/254806#M48947</link>
      <description>&lt;P&gt;MetaData property are read-only says it when i try to initialize, Could you share code please?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 22:10:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-set-the-Metadata-field-using-the-Splunk-Net-logging/m-p/254806#M48947</guid>
      <dc:creator>maqsoodbhatti</dc:creator>
      <dc:date>2016-12-02T22:10:52Z</dc:date>
    </item>
  </channel>
</rss>

