<?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 can I aggregate information into rows based on a transaction ID? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/599633#M208709</link>
    <description>&lt;P&gt;I have events with stageIDs and IDs. I want to create one row for each ID which includes a column for each stageID to indicate whether it has or does not have a corresponding event for that stageID. Then I want to filter for only the rows (IDs) that have stageID=foo present, and then create a pie chart to count the occurrences of each stageID in the rows that remain&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 21:52:15 GMT</pubDate>
    <dc:creator>rpecka</dc:creator>
    <dc:date>2022-05-27T21:52:15Z</dc:date>
    <item>
      <title>How can I aggregate information into rows based on a transaction ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/598380#M208371</link>
      <description>&lt;P&gt;I have events which will all have an ID, stageID, stageDuration, as well as other information.&lt;/P&gt;&lt;P&gt;In the past I've used `chart sum(stageDuration) over ID by stageID` to create stacked bar charts, but now I’m more interested in the table produced by that command. It has a column for ID, then columns for the durations of each of the stageIDs that had the same ID.&lt;/P&gt;&lt;P&gt;I would like to create a similar table except I would like to include additional columns. For example, I would like to conditionally populate a column with event.startTime from the stage foo if the stageID foo exists for an ID.&lt;/P&gt;&lt;P&gt;I don't need to visualization, just the way of forming the table.&lt;/P&gt;&lt;P&gt;It seems like there might be a way to do this with transactions but I haven't been able to figure it out.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 19:51:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/598380#M208371</guid>
      <dc:creator>rpecka</dc:creator>
      <dc:date>2022-05-18T19:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I aggregate information into rows based on a transaction ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/598385#M208372</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval foostart=if(stageID="foo", 'event.startTime',null())
| stats sum(stageDuration) as stageTotalDuration values(foostart) as foostart by ID stageID&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 May 2022 20:52:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/598385#M208372</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-18T20:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I aggregate information into rows based on a transaction ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/599358#M208649</link>
      <description>&lt;P&gt;This isn't quite it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the chart command I get this table:&lt;/P&gt;&lt;TABLE border="1" width="63.999368686868685%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%"&gt;sessionID&lt;/TD&gt;&lt;TD width="20%"&gt;stageID1&lt;/TD&gt;&lt;TD width="20%"&gt;stageID2&lt;/TD&gt;&lt;TD width="20%"&gt;stageID...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;id1&lt;/TD&gt;&lt;TD&gt;99&lt;/TD&gt;&lt;TD&gt;86&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;id2&lt;/TD&gt;&lt;TD&gt;33&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the same thing except without the chart and with additional columns populated depending on what the stages are&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 23:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/599358#M208649</guid>
      <dc:creator>rpecka</dc:creator>
      <dc:date>2022-05-25T23:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I aggregate information into rows based on a transaction ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/599377#M208653</link>
      <description>&lt;P&gt;Can you give an example of what you are trying to achieve?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 06:56:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/599377#M208653</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-26T06:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I aggregate information into rows based on a transaction ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/599633#M208709</link>
      <description>&lt;P&gt;I have events with stageIDs and IDs. I want to create one row for each ID which includes a column for each stageID to indicate whether it has or does not have a corresponding event for that stageID. Then I want to filter for only the rows (IDs) that have stageID=foo present, and then create a pie chart to count the occurrences of each stageID in the rows that remain&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 21:52:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/599633#M208709</guid>
      <dc:creator>rpecka</dc:creator>
      <dc:date>2022-05-27T21:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I aggregate information into rows based on a transaction ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/599635#M208711</link>
      <description>&lt;LI-CODE lang="markup"&gt;| chart count by id stageid
| where foo!=0&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 27 May 2022 22:02:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-aggregate-information-into-rows-based-on-a-transaction/m-p/599635#M208711</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-27T22:02:56Z</dc:date>
    </item>
  </channel>
</rss>

