<?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: Sending splunkmetrics via HEC from telegraf, Splunk shows bytes received but no bytes indexed. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Sending-splunkmetrics-via-HEC-from-telegraf-Why-does-Splunk-show/m-p/589669#M103388</link>
    <description>&lt;P&gt;Check your HEC input parameters. If you're not providing &lt;EM&gt;index&lt;/EM&gt; field within the event, you should have the destination index set within inputs.conf for this particular HEC token.&lt;/P&gt;&lt;P&gt;Also if you're sending to HEC without TLS it should be relatively easy to do a tcpdump of the network traffic to make sure if the events are really accepted by the input and get "lost" somewhere along the way.&lt;/P&gt;&lt;P&gt;Check your input with btool to see what index is effectively set in your resulting config on the indexer/forwarder where you have the HEC input configured.&lt;/P&gt;&lt;P&gt;If you didn't set any specific index for that input and the source is not sending an index field, the data is most probably trying to be ingested into your default index (usually the &lt;EM&gt;main&lt;/EM&gt; index).&lt;/P&gt;&lt;P&gt;If the source is setting the &lt;EM&gt;index&lt;/EM&gt; field, make sure that your HEC input allows receiving events for this index.&lt;/P&gt;&lt;P&gt;There are many things that can go wrong &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 10:45:00 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2022-03-18T10:45:00Z</dc:date>
    <item>
      <title>Sending splunkmetrics via HEC from telegraf: Why does Splunk show bytes received but no bytes indexed?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-splunkmetrics-via-HEC-from-telegraf-Why-does-Splunk-show/m-p/556530#M92112</link>
      <description>&lt;P&gt;From splunks logs (and _introspection) I can see the data coming in, but not being indexed. I have indexes created and working with other data sources, but I can't seem to see any events from this telegraf source.&lt;BR /&gt;&lt;BR /&gt;Please see the relevant part of my telegraf config, using the [[outputs.http]] plugin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[global_tags]
  # dc = "us-east-1" # will tag all metrics with dc=us-east-1
  # rack = "1a"
  ## Environment variables can be used as tags, and throughout the config file
  #user = "telegraf"
  index = "main"

[agent]
  interval = "30s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "10s"
  flush_jitter = "0s"
  precision = ""
  debug = false
  quiet = false
  logtarget = "file"
  logfile = "/var/log/telegraf/telegraf.log"
  logfile_rotation_interval = "0d"
  logfile_rotation_max_size = "1MB"
  logfile_rotation_max_archives = 5
  hostname = ""
  omit_hostname = false


[[outputs.http]]
   ## URL is the address to send metrics to
   url = "http://my-splunk-instance:8088/services/collector"


   ## HTTP method, one of: "POST" or "PUT"
   method = "POST"
  
   # DEV ONLY
   insecure_skip_verify = false

   data_format = "splunkmetric"
   splunkmetric_hec_routing = true

   ## Additional HTTP headers
   [outputs.http.headers]
      Content-Type = "application/json"
      Authorization = "Splunk my-splunk-token"
      X-Splunk-Request-Channel = "my-splunk-token"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Do I need to create a specific index and list this in the hec token config? Is there a source type I'm somehow discarding?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 20:57:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-splunkmetrics-via-HEC-from-telegraf-Why-does-Splunk-show/m-p/556530#M92112</guid>
      <dc:creator>thomasyung</dc:creator>
      <dc:date>2022-03-29T20:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sending splunkmetrics via HEC from telegraf, Splunk shows bytes received but no bytes indexed.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-splunkmetrics-via-HEC-from-telegraf-Why-does-Splunk-show/m-p/589649#M103386</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235627"&gt;@thomasyung&lt;/a&gt;&amp;nbsp;, did you solve this problem? I have a similar problem. I have many Telegraf agent hosts. Intermittently, some of them are indicized&amp;nbsp; and the others are not indicized.&lt;/P&gt;&lt;P&gt;I see no errors in splunkd.log. The index queues are empties. I have already applied &lt;A href="https://www.outcoldsolutions.com/blog/2021-04-21-configuring-hec-for-performance/" target="_blank" rel="noopener"&gt;the suggestions described here&lt;/A&gt; in order to improve Splunk performances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there some practices about HEC indexing in a single Splunk host? When I had one token all was working fine.&lt;/P&gt;&lt;P&gt;Then I added a second token with other seven Telegraf agent hosts, and the indexes start to miss data from some host.&lt;/P&gt;&lt;P&gt;No errors in splunkd.log or monitoring HEC console. Frustrating...&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 09:56:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-splunkmetrics-via-HEC-from-telegraf-Why-does-Splunk-show/m-p/589649#M103386</guid>
      <dc:creator>sistemistiposta</dc:creator>
      <dc:date>2022-03-18T09:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sending splunkmetrics via HEC from telegraf, Splunk shows bytes received but no bytes indexed.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-splunkmetrics-via-HEC-from-telegraf-Why-does-Splunk-show/m-p/589669#M103388</link>
      <description>&lt;P&gt;Check your HEC input parameters. If you're not providing &lt;EM&gt;index&lt;/EM&gt; field within the event, you should have the destination index set within inputs.conf for this particular HEC token.&lt;/P&gt;&lt;P&gt;Also if you're sending to HEC without TLS it should be relatively easy to do a tcpdump of the network traffic to make sure if the events are really accepted by the input and get "lost" somewhere along the way.&lt;/P&gt;&lt;P&gt;Check your input with btool to see what index is effectively set in your resulting config on the indexer/forwarder where you have the HEC input configured.&lt;/P&gt;&lt;P&gt;If you didn't set any specific index for that input and the source is not sending an index field, the data is most probably trying to be ingested into your default index (usually the &lt;EM&gt;main&lt;/EM&gt; index).&lt;/P&gt;&lt;P&gt;If the source is setting the &lt;EM&gt;index&lt;/EM&gt; field, make sure that your HEC input allows receiving events for this index.&lt;/P&gt;&lt;P&gt;There are many things that can go wrong &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 10:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-splunkmetrics-via-HEC-from-telegraf-Why-does-Splunk-show/m-p/589669#M103388</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-03-18T10:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sending splunkmetrics via HEC from telegraf, Splunk shows bytes received but no bytes indexed.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sending-splunkmetrics-via-HEC-from-telegraf-Why-does-Splunk-show/m-p/591211#M103558</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;you are right. I didn't explain in detail my setup.&lt;/P&gt;&lt;P&gt;My problem was the know issue&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;SPL-212284&lt;/STRONG&gt;. If you don't set&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;batch_search_max_pipeline = 1&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;even if&amp;nbsp;&lt;STRONG&gt;allow_batch_mode = 0&lt;/STRONG&gt; &lt;EM&gt;mstats&lt;/EM&gt; will randomly fail.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I don't know why &lt;EM&gt;_introspection&lt;/EM&gt; shows 0 as &lt;EM&gt;data_indexed&lt;/EM&gt; yet. Really my data is fully indexed.&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 09:13:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sending-splunkmetrics-via-HEC-from-telegraf-Why-does-Splunk-show/m-p/591211#M103558</guid>
      <dc:creator>sistemistiposta</dc:creator>
      <dc:date>2022-03-29T09:13:59Z</dc:date>
    </item>
  </channel>
</rss>

