<?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: How to place and sort data in a table for a single event based on the field names? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205763#M59834</link>
    <description>&lt;P&gt;That was it!  Thanks a ton!&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2016 23:47:56 GMT</pubDate>
    <dc:creator>waldez</dc:creator>
    <dc:date>2016-04-14T23:47:56Z</dc:date>
    <item>
      <title>How to place and sort data in a table for a single event based on the field names?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205757#M59828</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm having trouble breaking apart an event into a chart.  &lt;/P&gt;

&lt;P&gt;I have an event with 15 data points. The field titles are Alpha_1, Alpha_2, Alpha_3, Bravo_1, Bravo_2... all they way until Echo_3.  &lt;/P&gt;

&lt;P&gt;I want to table the information with rows, Alpha, Bravo, Charlie, Delta, Echo, and Columns of 1, 2 and 3. &lt;/P&gt;

&lt;P&gt;Can someone help me with this search?  It's quite complicated because I need to analyze the field names in order to sort the data into the respective place in the table.&lt;/P&gt;

&lt;P&gt;Thanks in advance, Waldez&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:26:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205757#M59828</guid>
      <dc:creator>waldez</dc:creator>
      <dc:date>2020-09-29T09:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to place and sort data in a table for a single event based on the field names?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205758#M59829</link>
      <description>&lt;P&gt;See if the multivalue commands give you any ideas on how you can achieve this&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.9/SearchReference/mvexpand"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.9/SearchReference/mvexpand&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:20:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205758#M59829</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-04-14T21:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to place and sort data in a table for a single event based on the field names?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205759#M59830</link>
      <description>&lt;P&gt;Assuming you've fixed field name and number, try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | table Alpha* Bravo* Charlie* Delta* Echo* | eval temp=1 | untable temp key value | rex field=key "(?&amp;lt;x&amp;gt;\w+)_(?&amp;lt;y&amp;gt;\d+)" | chart values(value) over x by y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Updated&lt;/STRONG&gt;&lt;BR /&gt;
Since your field naming convention has changed (from the example), the rex will change too. Try like this (will corporate Martin's xyseries option as well)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my base search| table BN* BS* NE* NW* South* | eval temp=1 | untable temp key value | rex field=key "^(?&amp;lt;x&amp;gt;\w+)_(?&amp;lt;y&amp;gt;.*)"| xyseries x y value
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205759#M59830</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-04-14T21:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to place and sort data in a table for a single event based on the field names?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205760#M59831</link>
      <description>&lt;P&gt;Instead of chart, you could also use the reverse of untable: &lt;CODE&gt;... | xyseries x y value&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:38:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205760#M59831</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-04-14T21:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to place and sort data in a table for a single event based on the field names?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205761#M59832</link>
      <description>&lt;P&gt;For some reason this isn't working. I'm unfamiliar with the rex and untable functions and I'm not certain I'm modifying the syntax correctly. My actual field names are BN_Received_Daily, BN_Sent_Daily, BN_percent_error, BS_Received_Daily, BS_Sent_Daily, BS_percent_error, and so on for NE, NW and South.  I'm trying to get to BN, BS, NE, NW, and South for the rows, and Sent_Daily, Received_Daily and Percent_Error for the columns&lt;/P&gt;

&lt;P&gt;I tried modifying your recommendation, but it isn't coming out correct, any suggestions? This is what I've got so far (I know I'm screwing something simple up):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my base search| table BN* BS* NE* NW* South* | eval temp=1 | untable temp key value | rex field=key "(?\w+)_(?\d+)"| chart values(value) over x by y
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:26:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205761#M59832</guid>
      <dc:creator>waldez</dc:creator>
      <dc:date>2020-09-29T09:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to place and sort data in a table for a single event based on the field names?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205762#M59833</link>
      <description>&lt;P&gt;The &lt;CODE&gt;rex&lt;/CODE&gt; call is the one, it was tailored to Alpha_1 etc., try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=key "(?&amp;lt;x&amp;gt;[^_]+)_(?&amp;lt;y&amp;gt;.+)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Apr 2016 23:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205762#M59833</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-04-14T23:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to place and sort data in a table for a single event based on the field names?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205763#M59834</link>
      <description>&lt;P&gt;That was it!  Thanks a ton!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 23:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-place-and-sort-data-in-a-table-for-a-single-event-based/m-p/205763#M59834</guid>
      <dc:creator>waldez</dc:creator>
      <dc:date>2016-04-14T23:47:56Z</dc:date>
    </item>
  </channel>
</rss>

