<?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: DBConnect dobbel quotes in key value pair in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/DBConnect-dobbel-quotes-in-key-value-pair/m-p/703830#M238521</link>
    <description>&lt;P&gt;Okay, in this case, please share the search that renders the datamodel. Perhaps you can do the replace there to make sure there are no double quotes returned on Climate.air_temp field.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2024 16:38:41 GMT</pubDate>
    <dc:creator>victor_menezes</dc:creator>
    <dc:date>2024-11-07T16:38:41Z</dc:date>
    <item>
      <title>DBConnect dobbel quotes in key value pair</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DBConnect-dobbel-quotes-in-key-value-pair/m-p/703800#M238508</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a DBConnect query that gets data from a database and then send it to a Splunk index. Below are the query and also how it looks in Splunk. The data is being indexed as key=value pair with dobbel quotes around "value". I have plenty of other data that is not using DBConnect and they dont have dobbel quotes around value.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the quotes is there because im using DBConnect?&lt;/P&gt;&lt;P&gt;Is it possible to index data from DBConnect without adding the quotes?&lt;/P&gt;&lt;P&gt;When i try to searc the data in Splunk i just dont get any data. I think it may have to do with the dobbel quotes? I'm not sure.&lt;/P&gt;&lt;P&gt;Here are the search string. The air_temp is defined in the Climate datamodel. The TA(air temperature) in the data is defined in props.conf with the right sourcetype TU_CLM_Time.&lt;/P&gt;&lt;P&gt;| tstats avg(Climate.air_temp) as air_temp from datamodel="Climate" where sourcetype="TU_CLM_Time" host=TU_CLM_1 by host _time span=60m ```Fetching relevant fields from CLM sourcetype in CLM datamodel.```&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lyngstad_1-1730978071144.png" style="width: 770px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33407i947ADD6C85EDC261/image-dimensions/770x285?v=v2" width="770" height="285" role="button" title="lyngstad_1-1730978071144.png" alt="lyngstad_1-1730978071144.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lyngstad_0-1730977707554.png" style="width: 772px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33406i19E4476C1250B589/image-dimensions/772x107?v=v2" width="772" height="107" role="button" title="lyngstad_0-1730977707554.png" alt="lyngstad_0-1730977707554.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lyngstad_2-1730978147918.png" style="width: 205px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33408iDA399E5413ADC009/image-dimensions/205x676?v=v2" width="205" height="676" role="button" title="lyngstad_2-1730978147918.png" alt="lyngstad_2-1730978147918.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lyngstad_3-1730978339570.png" style="width: 785px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33409i973EE466D40A4505/image-dimensions/785x212?v=v2" width="785" height="212" role="button" title="lyngstad_3-1730978339570.png" alt="lyngstad_3-1730978339570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 11:25:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DBConnect-dobbel-quotes-in-key-value-pair/m-p/703800#M238508</guid>
      <dc:creator>lyngstad</dc:creator>
      <dc:date>2024-11-07T11:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: DBConnect dobbel quotes in key value pair</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DBConnect-dobbel-quotes-in-key-value-pair/m-p/703815#M238517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/273841"&gt;@lyngstad&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Based in your search results screenshot, you get the values from the by clause but lack the calculation of air temp, so I guess the trick is to format the datamodel to be measured (so yes, it may be related to some double quotes around the values).&lt;BR /&gt;&lt;BR /&gt;Can you try this then? Trying to get it via "values" so we can later convert to number and remove the quotes, which will allow average metric.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats values(Climate.air_temp) as air_temp_raw from datamodel="Climate" where sourcetype="TU_CLM_Time" host=TU_CLM_1 by host _time span=60m
| eval air_temp_numeric = tonumber(trim(air_temp_raw, "\""))
| stats avg(air_temp_numeric) as air_temp by host _time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 14:41:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DBConnect-dobbel-quotes-in-key-value-pair/m-p/703815#M238517</guid>
      <dc:creator>victor_menezes</dc:creator>
      <dc:date>2024-11-07T14:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: DBConnect dobbel quotes in key value pair</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DBConnect-dobbel-quotes-in-key-value-pair/m-p/703821#M238519</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for answering.&lt;/P&gt;&lt;P&gt;I tried the search you provided with no luck.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lyngstad_0-1730991651926.png" style="width: 782px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33410i0A7C09C20D71A183/image-dimensions/782x299?v=v2" width="782" height="299" role="button" title="lyngstad_0-1730991651926.png" alt="lyngstad_0-1730991651926.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 15:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DBConnect-dobbel-quotes-in-key-value-pair/m-p/703821#M238519</guid>
      <dc:creator>lyngstad</dc:creator>
      <dc:date>2024-11-07T15:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: DBConnect dobbel quotes in key value pair</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DBConnect-dobbel-quotes-in-key-value-pair/m-p/703830#M238521</link>
      <description>&lt;P&gt;Okay, in this case, please share the search that renders the datamodel. Perhaps you can do the replace there to make sure there are no double quotes returned on Climate.air_temp field.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 16:38:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DBConnect-dobbel-quotes-in-key-value-pair/m-p/703830#M238521</guid>
      <dc:creator>victor_menezes</dc:creator>
      <dc:date>2024-11-07T16:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: DBConnect dobbel quotes in key value pair</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DBConnect-dobbel-quotes-in-key-value-pair/m-p/703891#M238552</link>
      <description>&lt;P&gt;Okey, so i dont now exactly where the search is. I have the datamodel.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lyngstad_0-1731051298688.png" style="width: 763px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33418iA82433C737A37419/image-dimensions/763x140?v=v2" width="763" height="140" role="button" title="lyngstad_0-1731051298688.png" alt="lyngstad_0-1731051298688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lyngstad_1-1731051340732.png" style="width: 776px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33419i79E51903DB190495/image-dimensions/776x394?v=v2" width="776" height="394" role="button" title="lyngstad_1-1731051340732.png" alt="lyngstad_1-1731051340732.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lyngstad_2-1731051482009.png" style="width: 764px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33420iA69D907A6629B874/image-dimensions/764x469?v=v2" width="764" height="469" role="button" title="lyngstad_2-1731051482009.png" alt="lyngstad_2-1731051482009.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 07:38:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DBConnect-dobbel-quotes-in-key-value-pair/m-p/703891#M238552</guid>
      <dc:creator>lyngstad</dc:creator>
      <dc:date>2024-11-08T07:38:55Z</dc:date>
    </item>
  </channel>
</rss>

