<?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: Software application best practice for logging sets of tuples for Splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Software-application-best-practice-for-logging-sets-of-tuples/m-p/123471#M33327</link>
    <description>&lt;P&gt;Gents, thx for the response(s). There is actually some nuance to this that I don't think was communicated well. I have modified the question to reflect that.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2013 01:41:00 GMT</pubDate>
    <dc:creator>gregbujak</dc:creator>
    <dc:date>2013-10-31T01:41:00Z</dc:date>
    <item>
      <title>Software application best practice for logging sets of tuples for Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Software-application-best-practice-for-logging-sets-of-tuples/m-p/123468#M33324</link>
      <description>&lt;P&gt;When you have control of the logging in an application, what is the recommendation to make things as easy as possible for Splunk to digest/report on sets of tuples? &lt;/P&gt;

&lt;P&gt;What should the log event(s) look like and then what would the search look like if you want to know each individual type and count.&lt;/P&gt;

&lt;P&gt;Specific example: I have a dynamically generated set containing types and counts - myset={(widgetA | 100), (widgetB | 200), (widgetC | 5)} &lt;/P&gt;

&lt;P&gt;Short of printing each on a separate line, whats the simplest approach? Is the above a good format? &lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Having semantic logging that is expressed in key value pairs separated by "=" is bread and butter. The issue here is sets and dynamic membership where the "schema" of the tuple is defined by {(type, count)}. To make this more difficult, but no less relevant: imagine if your tuple was defined by {(type, count, successes, failures)}&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2013 22:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Software-application-best-practice-for-logging-sets-of-tuples/m-p/123468#M33324</guid>
      <dc:creator>gregbujak</dc:creator>
      <dc:date>2013-10-30T22:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Software application best practice for logging sets of tuples for Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Software-application-best-practice-for-logging-sets-of-tuples/m-p/123469#M33325</link>
      <description>&lt;P&gt;all key=value pair formats are auto extracted, so perhaps try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;widgetA=100 widgetB=200 widgetC=5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could even have other fields that identify the app like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;appname=myappnamehere widgetA=100 widgetB=200 widgetC=5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Enjoy!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2013 23:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Software-application-best-practice-for-logging-sets-of-tuples/m-p/123469#M33325</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2013-10-30T23:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Software application best practice for logging sets of tuples for Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Software-application-best-practice-for-logging-sets-of-tuples/m-p/123470#M33326</link>
      <description>&lt;P&gt;Some added details:  If the thing separating your pairs (in the above, the space and equals characters) could occur in your values, then quote them.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;key=some_value key2="Some value" key3=12345 key4="prop1=foo prop2=bar"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Something like that will auto-extract very well with splunk, and you end up with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;key = some_value
key2 = Some value
key3 = 12345
key4 = prop1=foo prop2=bar
prop1 = foo
prop2 = bar
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Oct 2013 23:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Software-application-best-practice-for-logging-sets-of-tuples/m-p/123470#M33326</guid>
      <dc:creator>emiller42</dc:creator>
      <dc:date>2013-10-30T23:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Software application best practice for logging sets of tuples for Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Software-application-best-practice-for-logging-sets-of-tuples/m-p/123471#M33327</link>
      <description>&lt;P&gt;Gents, thx for the response(s). There is actually some nuance to this that I don't think was communicated well. I have modified the question to reflect that.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 01:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Software-application-best-practice-for-logging-sets-of-tuples/m-p/123471#M33327</guid>
      <dc:creator>gregbujak</dc:creator>
      <dc:date>2013-10-31T01:41:00Z</dc:date>
    </item>
  </channel>
</rss>

