<?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: Why is splunk-connect-for-kubernetes search by namespace=mynamespace missing results? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-splunk-connect-for-kubernetes-search-by-namespace/m-p/642186#M79095</link>
    <description>&lt;P&gt;Try using namespace::mynamespace&lt;BR /&gt;&lt;BR /&gt;I cannot remember why though.&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 20:06:00 GMT</pubDate>
    <dc:creator>RDumbeck</dc:creator>
    <dc:date>2023-05-03T20:06:00Z</dc:date>
    <item>
      <title>Why is splunk-connect-for-kubernetes search by namespace=mynamespace missing results?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-splunk-connect-for-kubernetes-search-by-namespace/m-p/460283#M56637</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;We use splunk-connect-for-kubernetes to send logs to splunk via HEC mechanism. Sending logs to splunk is fine, but searching is not.&lt;BR /&gt;When we search for&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;namespace=mynamespace "*Exception*"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There is lots of missing logs, very few is returned.&lt;BR /&gt;But, when I search like that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;namespace=*mynamespace* "*Exception*"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;All is fine, all logs are returned&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;
&lt;P&gt;OUtput part of fluentd configuration:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;match **&amp;gt;
    @type copy
    deep_copy true
    &amp;lt;store&amp;gt;
      @type splunk_hec
      protocol https
      hec_host "#{ENV['SPLUNK_HOST']}"
      hec_port "#{ENV['SPLUNK_PORT']}"
      hec_token "#{ENV['SPLUNK_TOKEN']}"
      host "#{ENV['NODE_NAME']}"
      source_key source
      sourcetype_key sourcetype
      &amp;lt;fields&amp;gt;
        pod
        namespace
        container_name
        container_id
        cluster_env
        cluster_name
      &amp;lt;/fields&amp;gt;
      &amp;lt;buffer&amp;gt;
        @type memory
        chunk_limit_records 100000
        chunk_limit_size 200m
        flush_interval 5s
        flush_thread_count 1
        overflow_action block
        retry_max_times 3
        total_limit_size 600m
      &amp;lt;/buffer&amp;gt;
      &amp;lt;format&amp;gt;
        @type single_value
        message_key log
        add_newline false
      &amp;lt;/format&amp;gt;
    &amp;lt;/store&amp;gt;
    &amp;lt;store&amp;gt;
      @type prometheus
      &amp;lt;metric&amp;gt;
        (...)
      &amp;lt;/metric&amp;gt;
    &amp;lt;/store&amp;gt;
  &amp;lt;/match&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Dec 2022 16:16:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-splunk-connect-for-kubernetes-search-by-namespace/m-p/460283#M56637</guid>
      <dc:creator>fazie</dc:creator>
      <dc:date>2022-12-01T16:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-connect-for-kubernetes search by namespace=mynamespace missing results</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-splunk-connect-for-kubernetes-search-by-namespace/m-p/622716#M78067</link>
      <description>&lt;P&gt;any luck with this. I have the same problem.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 18:17:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-splunk-connect-for-kubernetes-search-by-namespace/m-p/622716#M78067</guid>
      <dc:creator>RDumbeck</dc:creator>
      <dc:date>2022-11-30T18:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-connect-for-kubernetes search by namespace=mynamespace missing results</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-splunk-connect-for-kubernetes-search-by-namespace/m-p/624030#M78123</link>
      <description>&lt;P&gt;Ran into this recently, putting them together in a fields.conf file on the search head will make them searchable without needing the wildcards since they're metadata fields.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;[k8s.cluster.name]&lt;BR /&gt;INDEXED=true&lt;/P&gt;&lt;P&gt;[k8s.container.name]&lt;BR /&gt;INDEXED=true&lt;/P&gt;&lt;P&gt;[k8s.namespace.name]&lt;BR /&gt;INDEXED=true&lt;/P&gt;&lt;P&gt;[k8s.node.name]&lt;BR /&gt;INDEXED=true&lt;/P&gt;&lt;P&gt;[k8s.pod.name]&lt;BR /&gt;INDEXED=true&lt;/P&gt;&lt;P&gt;[k8s.pod.uid]&lt;BR /&gt;INDEXED=true&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 15:54:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-splunk-connect-for-kubernetes-search-by-namespace/m-p/624030#M78123</guid>
      <dc:creator>efloss</dc:creator>
      <dc:date>2022-12-12T15:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why is splunk-connect-for-kubernetes search by namespace=mynamespace missing results?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-splunk-connect-for-kubernetes-search-by-namespace/m-p/642186#M79095</link>
      <description>&lt;P&gt;Try using namespace::mynamespace&lt;BR /&gt;&lt;BR /&gt;I cannot remember why though.&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 20:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Why-is-splunk-connect-for-kubernetes-search-by-namespace/m-p/642186#M79095</guid>
      <dc:creator>RDumbeck</dc:creator>
      <dc:date>2023-05-03T20:06:00Z</dc:date>
    </item>
  </channel>
</rss>

