<?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 List of properties aggregated by event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/List-of-properties-aggregated-by-event/m-p/168231#M47957</link>
    <description>&lt;P&gt;Hi there,&lt;BR /&gt;
I am new to Splunk.&lt;BR /&gt;
I have data with the following structure, where each entry has an event name and a variable list of properties associated with that event:&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
{event=eventA, properties={propertyName1=123, propertyName2=abc}}&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
{event=eventA, properties={propertyName1=456, propertyName2=def}}&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
{event=eventB, properties={propertyName3=789}}&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
{event=eventC, properties={propertyName4=AAA, propertyName5=BBB}}&lt;/P&gt;

&lt;P&gt;Events of type eventA will always have the same number and names of properties, which are different from the names and number of properties that other types of events have.&lt;/P&gt;

&lt;P&gt;I want to ignore the values themselves, and create a search that results in a table that summarizes the properties that each event type has:&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;
eventA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;propertyName1,&amp;nbsp;propertyName2&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
eventB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;propertyName&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
eventC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;propertyName4,&amp;nbsp;propertyName5&lt;/P&gt;

&lt;P&gt;How can I do that?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2013 17:30:49 GMT</pubDate>
    <dc:creator>turkamit</dc:creator>
    <dc:date>2013-12-05T17:30:49Z</dc:date>
    <item>
      <title>List of properties aggregated by event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-properties-aggregated-by-event/m-p/168231#M47957</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;
I am new to Splunk.&lt;BR /&gt;
I have data with the following structure, where each entry has an event name and a variable list of properties associated with that event:&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
{event=eventA, properties={propertyName1=123, propertyName2=abc}}&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
{event=eventA, properties={propertyName1=456, propertyName2=def}}&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
{event=eventB, properties={propertyName3=789}}&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
{event=eventC, properties={propertyName4=AAA, propertyName5=BBB}}&lt;/P&gt;

&lt;P&gt;Events of type eventA will always have the same number and names of properties, which are different from the names and number of properties that other types of events have.&lt;/P&gt;

&lt;P&gt;I want to ignore the values themselves, and create a search that results in a table that summarizes the properties that each event type has:&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;
eventA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;propertyName1,&amp;nbsp;propertyName2&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
eventB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;propertyName&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
eventC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;propertyName4,&amp;nbsp;propertyName5&lt;/P&gt;

&lt;P&gt;How can I do that?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 17:30:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-properties-aggregated-by-event/m-p/168231#M47957</guid>
      <dc:creator>turkamit</dc:creator>
      <dc:date>2013-12-05T17:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: List of properties aggregated by event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-properties-aggregated-by-event/m-p/168232#M47958</link>
      <description>&lt;P&gt;You can't list the field names in a table other than as a header.  The body of the table is for values, like counts.&lt;/P&gt;

&lt;P&gt;However, you could create a table with the header:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;event    propertyName1    propertyName2    propertyName3    propertyName4    propertyName5&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and populate the table with counts of propertyNames by event, which would show blanks when the propertyName does not exist for that event:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;search event="*" | fillnull value=" " | stats count by event,propertyName1,propertyName2,propertyName3,propertyName4,propertyName5&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 22:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-properties-aggregated-by-event/m-p/168232#M47958</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-12-05T22:26:05Z</dc:date>
    </item>
  </channel>
</rss>

