<?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: Best practice for overriding source key in inputs.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231666#M45130</link>
    <description>&lt;P&gt;Good spotting! &lt;/P&gt;

&lt;P&gt;The Splunk Splexicon does not list any of &lt;CODE&gt;EC&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Splexicon#anchorE"&gt;http://docs.splunk.com/Splexicon#anchorE&lt;/A&gt; nor &lt;CODE&gt;HEC&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Splexicon#anchorH"&gt;http://docs.splunk.com/Splexicon#anchorH&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;A search for &lt;CODE&gt;EC&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Special:SplunkSearch/docs?q=ec"&gt;http://docs.splunk.com/Special:SplunkSearch/docs?q=ec&lt;/A&gt; returns 8 results and a search for &lt;CODE&gt;HEC&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Special:SplunkSearch/docs?q=hec"&gt;http://docs.splunk.com/Special:SplunkSearch/docs?q=hec&lt;/A&gt; returns 0 results.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2016 03:45:44 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2016-05-06T03:45:44Z</dc:date>
    <item>
      <title>Best practice for overriding source key in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231663#M45127</link>
      <description>&lt;P&gt;I've seen the related question "&lt;A href="https://answers.splunk.com/answers/35175/override-source-key-in-inputs-conf.html"&gt;Override source key in inputs.conf&lt;/A&gt;".&lt;/P&gt;

&lt;P&gt;I've pretty much decided that I &lt;EM&gt;do&lt;/EM&gt; want to override the source key (although I'm open to counterarguments): the question now is, to what?&lt;/P&gt;

&lt;P&gt;Here's my situation: I'm using a proprietary, platform-specific tool to extract many types of log records from various systems on that platform. I'm then sending those extracted log records to a remote Splunk instance via either HTTP (that is, to the Splunk HTTP Event Collector; EC) or TCP.&lt;/P&gt;

&lt;P&gt;For the purposes of this question, I'm going to refer to that log extraction tool as &lt;CODE&gt;xyz&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Events ingested via EC have the &lt;CODE&gt;source&lt;/CODE&gt; field value &lt;CODE&gt;http:xyz&lt;/CODE&gt;, where &lt;CODE&gt;xyz&lt;/CODE&gt; is the name of the Event Collector token that I created for this purpose, deliberately matching the name of the tool. I am dimly aware of the possibility - although no use case occurs to me right now - that, in the future, I might want to create additional EC tokens for &lt;CODE&gt;xyz&lt;/CODE&gt;; perhaps I'll append qualifying terms with an underscore separator, I'm not sure.&lt;/P&gt;

&lt;P&gt;Events ingested via TCP have the default &lt;CODE&gt;source&lt;/CODE&gt; field value &lt;CODE&gt;tcp:6666&lt;/CODE&gt;, where 6666 is the TCP port.&lt;/P&gt;

&lt;P&gt;I don't feel that comfortable with this default &lt;CODE&gt;source&lt;/CODE&gt; value for the TCP-ingested events. I'd prefer a more "mnemonic" value that doesn't refer to a specific port number. In a multisite cluster, indexers might, for site-specific reasons, be listening on different port numbers. I think I'd prefer to have the same &lt;CODE&gt;source&lt;/CODE&gt; value - for example, &lt;CODE&gt;tcp:xyz&lt;/CODE&gt; - regardless of which indexer ingests an event, and what TCP port it's listening on.&lt;/P&gt;

&lt;P&gt;So, although this naming scheme is likely simplistic - hence this question about best practice; I'm hoping for advice from more experienced users - I'm leaning towards &lt;CODE&gt;source&lt;/CODE&gt; values in the following format:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;input&lt;/EM&gt; &lt;CODE&gt;:&lt;/CODE&gt; &lt;EM&gt;sender&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;where &lt;EM&gt;sender&lt;/EM&gt; is, in my case, the tool &lt;CODE&gt;xyz&lt;/CODE&gt;. So: &lt;CODE&gt;http:xyz&lt;/CODE&gt; (as now) for the EC-ingested events, and &lt;CODE&gt;tcp:xyz&lt;/CODE&gt; (instead of the default &lt;CODE&gt;tcp:6666&lt;/CODE&gt;) for the TCP-ingested events.&lt;/P&gt;

&lt;P&gt;Thoughts, suggestions welcome.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Should I use an underscore instead of the colon as a separator? (I realize that the colon implies a &lt;EM&gt;protocol&lt;/EM&gt; rather than some more generalized notion of "input type/method".)&lt;/LI&gt;
&lt;LI&gt;Should I reverse the order of these qualifiers: for example, &lt;CODE&gt;xyz_http&lt;/CODE&gt;?&lt;/LI&gt;
&lt;LI&gt;Why don't I use the same &lt;CODE&gt;source&lt;/CODE&gt; value - perhaps just &lt;CODE&gt;xyz&lt;/CODE&gt; - regardless of input (ingestion) method? Difficult to put my finger on many concrete reasons. Perhaps one: I'm sending JSON to both EC and TCP, but the JSON structure is slightly different (&lt;A href="https://answers.splunk.com/answers/399202/can-i-use-the-http-event-collector-json-event-prot.html"&gt;I wish it wasn't&lt;/A&gt;). If I need to debug ingestion issues, it might be helpful to be able to differentiate the events; but then, the inherent differences in the structure of the JSON payloads means I can already do that.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I understand that some of this might come down to personal preference, but I'm interested in what other people are doing, and why.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 08:36:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231663#M45127</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2016-05-05T08:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for overriding source key in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231664#M45128</link>
      <description>&lt;P&gt;I would use &lt;CODE&gt;HEC:xyz&lt;/CODE&gt; where &lt;CODE&gt;HEC&lt;/CODE&gt; is the common name for &lt;CODE&gt;HTTP Event Collector&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 17:15:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231664#M45128</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-05T17:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for overriding source key in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231665#M45129</link>
      <description>&lt;P&gt;Hi @woodcock, thanks for the suggestion:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;I would use &lt;CODE&gt;HEC:xyz&lt;/CODE&gt; where &lt;CODE&gt;HEC&lt;/CODE&gt; is the common name for HTTP Event Collector.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;How common?&lt;/P&gt;

&lt;P&gt;The first Splunk blog post tagged &lt;CODE&gt;http-event-collector&lt;/CODE&gt;, "&lt;A href="http://blogs.splunk.com/2015/10/06/http-event-collector-your-direct-event-pipe-to-splunk-6-3/"&gt;HTTP Event Collector, your DIRECT event pipe to Splunk 6.3&lt;/A&gt;", uses the abbreviation &lt;STRONG&gt;EC&lt;/STRONG&gt;:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;HTTP Event Collector (EC) is a new, robust, token-based JSON API&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;So does the Splunk dev topic "&lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE6M"&gt;Introduction to Splunk HTTP Event Collector&lt;/A&gt;":&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Welcome to Splunk HTTP Event Collector (&lt;STRONG&gt;EC&lt;/STRONG&gt;)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;So does the "Walkthrough" dev topic:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;the &lt;STRONG&gt;EC&lt;/STRONG&gt; port ... an HTTP Event Collector authentication token ("&lt;STRONG&gt;EC&lt;/STRONG&gt; token"). &lt;STRONG&gt;EC&lt;/STRONG&gt; tokens are ...  the &lt;STRONG&gt;EC&lt;/STRONG&gt; event protocol ...&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;But then, the latest Splunk blog post tagged `http-event-collector, "There is a “LOG”! Introducing Splunk Logging Driver in Docker 1.10.0", on 10 February 2016, refers to &lt;STRONG&gt;HEC&lt;/STRONG&gt;:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Built on the HTTP Event Collector (HEC) ... Enable HEC ... Create a New HEC Token&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;And Googling for:&lt;/P&gt;

&lt;P&gt;"HTTP Event Collector (HEC)" site:splunk.com&lt;/P&gt;

&lt;P&gt;returns "about 38 results", whereas:&lt;/P&gt;

&lt;P&gt;"HTTP Event Collector (EC)" site:splunk.com&lt;/P&gt;

&lt;P&gt;returns "about 32 results".&lt;/P&gt;

&lt;P&gt;If any Splunk tech writers are reading this: what's the &lt;EM&gt;official&lt;/EM&gt; abbreviation: EC or HEC?&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 02:39:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231665#M45129</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2016-05-06T02:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for overriding source key in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231666#M45130</link>
      <description>&lt;P&gt;Good spotting! &lt;/P&gt;

&lt;P&gt;The Splunk Splexicon does not list any of &lt;CODE&gt;EC&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Splexicon#anchorE"&gt;http://docs.splunk.com/Splexicon#anchorE&lt;/A&gt; nor &lt;CODE&gt;HEC&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Splexicon#anchorH"&gt;http://docs.splunk.com/Splexicon#anchorH&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;A search for &lt;CODE&gt;EC&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Special:SplunkSearch/docs?q=ec"&gt;http://docs.splunk.com/Special:SplunkSearch/docs?q=ec&lt;/A&gt; returns 8 results and a search for &lt;CODE&gt;HEC&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Special:SplunkSearch/docs?q=hec"&gt;http://docs.splunk.com/Special:SplunkSearch/docs?q=hec&lt;/A&gt; returns 0 results.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 03:45:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231666#M45130</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-05-06T03:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for overriding source key in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231667#M45131</link>
      <description>&lt;P&gt;I was judging from speakers @ Splunk events and also blogs.  My experience there is that HEC is far more prevalent than EC.  You sleuthing has shown that clearly a documentation cleanup and official statement on the matter is warranted.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 13:07:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231667#M45131</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-06T13:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for overriding source key in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231668#M45132</link>
      <description>&lt;P&gt;I know which acronym marketing likes, and it's not HEC. I agree that some clarity is needed.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 14:29:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231668#M45132</guid>
      <dc:creator>hrottenberg_spl</dc:creator>
      <dc:date>2016-05-06T14:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for overriding source key in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231669#M45133</link>
      <description>&lt;P&gt;Okay, I have spoken with the product manager about this and the inconsistency you see results from a change in usage. When we first introduced the feature, we officially abbreviated it as EC. Over time, HEC became more widely used, and we have adapted our standard to reflect that. The correct abbreviation is now HEC. We are updating the docs and original blog post to reflect this change.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 15:05:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231669#M45133</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2016-05-06T15:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for overriding source key in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231670#M45134</link>
      <description>&lt;P&gt;@woodcock Hal is right, initially we had decided to not use HEC. However that boat has since shipped and everyone is using it anyway. So, we have relaxed that and we are going to update our docs, which is why you are seeing HEC show up now. Thanks for reporting this.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 15:12:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231670#M45134</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-05-06T15:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for overriding source key in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231671#M45135</link>
      <description>&lt;P&gt;"Here ye, here he, henceforth HEC is a permitted term and you may use it without fear!"&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 15:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231671#M45135</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-05-06T15:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for overriding source key in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231672#M45136</link>
      <description>&lt;P&gt;lol I blame @damian dallimore&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 15:45:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Best-practice-for-overriding-source-key-in-inputs-conf/m-p/231672#M45136</guid>
      <dc:creator>hrottenberg_spl</dc:creator>
      <dc:date>2016-05-06T15:45:26Z</dc:date>
    </item>
  </channel>
</rss>

