<?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: Tranpose on specific structure events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685943#M234044</link>
    <description>&lt;P&gt;Firstly, this seems to be a different question. Secondly, haven't you already received and accepted a solution&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Zulu-time/m-p/685902/highlight/true#M114393" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2024 09:30:48 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-04-30T09:30:48Z</dc:date>
    <item>
      <title>Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/684778#M233735</link>
      <description>&lt;P&gt;hello&amp;nbsp;i have a list of events structured with the following fields&amp;nbsp;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;guid (uniqueid), property (name of a property ), value ( value link to the property name).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;i have 4 specific&amp;nbsp;properties that I received separately&amp;nbsp;on different&amp;nbsp;events and the key is the guid to consolidate the information property/value by guid&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;i make a search =&amp;gt; search xxx | table&amp;nbsp; guid , property , value&lt;/P&gt;&lt;P&gt;i m able to have all the events in a table in this way&lt;/P&gt;&lt;P&gt;guid&amp;nbsp; &amp;nbsp;property value&lt;BR /&gt;1&amp;nbsp; &amp;nbsp;start&amp;nbsp; 1&lt;BR /&gt;1&amp;nbsp; &amp;nbsp;end&amp;nbsp; 2&lt;BR /&gt;1&amp;nbsp; &amp;nbsp;duration 1&lt;BR /&gt;1&amp;nbsp; &amp;nbsp;status&amp;nbsp; OK&lt;BR /&gt;2 &amp;nbsp;start&amp;nbsp; 1&lt;BR /&gt;2&amp;nbsp; &amp;nbsp;end&amp;nbsp; 3&lt;BR /&gt;2&amp;nbsp; &amp;nbsp;duration 2&lt;BR /&gt;2&amp;nbsp; &amp;nbsp;status&amp;nbsp; KO&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to transpose the result in this way &amp;nbsp;=&amp;gt; search xxx | table&amp;nbsp; guid , property , value | transpose 0 header_field="property"&lt;BR /&gt;tho have a result like this :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;guid start end duration status&lt;BR /&gt;1 1 2 1 OK&lt;BR /&gt;2 1 3 2 KO&lt;/P&gt;&lt;P&gt;but the result is not good, is there a way to easily search and display in a readable table this kind of structured events?&lt;BR /&gt;Other need, how to simply display by guid the status and duration ?&lt;BR /&gt;Thanks for your help&lt;BR /&gt;regards&lt;BR /&gt;Laurent&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 14:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/684778#M233735</guid>
      <dc:creator>Laurent</dc:creator>
      <dc:date>2024-04-19T14:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/684787#M233736</link>
      <description>&lt;LI-CODE lang="markup"&gt;| xyseries guid property value&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Apr 2024 15:25:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/684787#M233736</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-19T15:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/684959#M233764</link>
      <description>&lt;P&gt;Thanks it's work great.&lt;/P&gt;&lt;P&gt;Is there a way to order the value of the column property?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 08:07:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/684959#M233764</guid>
      <dc:creator>Laurent</dc:creator>
      <dc:date>2024-04-22T08:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/684961#M233765</link>
      <description>&lt;P&gt;They are already ordered - they are sorted lexicographically (alphabetically) - perhaps not the order you wanted? Try adding this to the end&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fields guid start end duration status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 08:13:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/684961#M233765</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-22T08:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685933#M234043</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;| fields guid start end duration status&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there&amp;nbsp; way to reformat a field for exemple here the start? i want to apply the format done by that :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval start=strftime(strptime(start, "%FT%T.%Q%Z"), "%F %T")  &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;LAurent&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 08:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685933#M234043</guid>
      <dc:creator>Laurent</dc:creator>
      <dc:date>2024-04-30T08:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685943#M234044</link>
      <description>&lt;P&gt;Firstly, this seems to be a different question. Secondly, haven't you already received and accepted a solution&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Zulu-time/m-p/685902/highlight/true#M114393" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 09:30:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685943#M234044</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-30T09:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685947#M234046</link>
      <description>&lt;P&gt;Yes but is it to apply the result of the date reformating provided into a fields of this answer :).&amp;nbsp; But i can open a new topic if necessary&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 09:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685947#M234046</guid>
      <dc:creator>Laurent</dc:creator>
      <dc:date>2024-04-30T09:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685948#M234047</link>
      <description>&lt;P&gt;OK assuming your start and end fields match the timestamp format you are using to parse, then this should work for both fields (but your example data doesn't show it as such). Have you tried it?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 10:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685948#M234047</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-30T10:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685951#M234049</link>
      <description>&lt;P&gt;i have test the format directly to the value it's work.&lt;/P&gt;&lt;P&gt;my concerne is to apply it after the xseries on =&amp;gt;&amp;nbsp; | fields guid start end duration status .&lt;/P&gt;&lt;P&gt;On the result of the field start if i put the eval at the end it doesn't work.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 10:13:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685951#M234049</guid>
      <dc:creator>Laurent</dc:creator>
      <dc:date>2024-04-30T10:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685953#M234050</link>
      <description>&lt;P&gt;Exactly what have you tried and exactly what doesn't work? What results / errors messages do you get?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 10:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685953#M234050</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-30T10:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685964#M234057</link>
      <description>&lt;P&gt;thanks, i have tried that to reformat the field start but it result in an empty field.&lt;/P&gt;&lt;P&gt;| xyseries guid property value | fields guid start end duration status | eval start=strftime(strptime(start, "%FT%T.%Q%Z"), "%F %T")&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 12:28:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685964#M234057</guid>
      <dc:creator>Laurent</dc:creator>
      <dc:date>2024-04-30T12:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685970#M234060</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval start="2024-04-30T11:59:24.123Z"
| eval start=strftime(strptime(start, "%FT%T.%Q%Z"), "%F %T")&lt;/LI-CODE&gt;&lt;P&gt;This works which would seem to suggest that the values you have in start (and end) are not in this format. Please can you share some examples which aren't working?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 12:58:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685970#M234060</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-30T12:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685984#M234066</link>
      <description>&lt;P&gt;The date transformation is working, i test it. My concerned is how(where) to insert it in my search query . When i add the transfo at the end of the query nothing happen.&lt;/P&gt;
&lt;P&gt;Here my full request which display a table well structured but with the date end and start date in this format&amp;nbsp;&lt;SPAN&gt;2024-04-30T12:01:04.215Z and not in this one&amp;nbsp;2024-04-30 14:01:04&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;search | table guid  property value| | xyseries guid property value | fields guid start end duration status | eval start=strftime(strptime(start, "%FT%T.%Q%Z"), "%F %T")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 15:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685984#M234066</guid>
      <dc:creator>Laurent</dc:creator>
      <dc:date>2024-04-30T15:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685999#M234074</link>
      <description>&lt;P&gt;Here is a runanywhere example showing it working&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval guid=1
| eval property="start"
| eval value="2024-04-30T12:01:04.215Z"
| xyseries guid property value
| eval start=strftime(strptime(start, "%FT%T.%Q%Z"), "%F %T")&lt;/LI-CODE&gt;&lt;P&gt;Please share some actual examples (anonymised of course) where this technique does not work&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 14:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/685999#M234074</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-30T14:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/688150#M234649</link>
      <description>&lt;P&gt;Hello, thanks for answering&lt;/P&gt;
&lt;P&gt;there is no errors the time formating is not take into account here my query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;query&amp;gt;index="xxx"  earliest=$timerange.earliest$ latest=$timerange.latest$ | table guid, "parameter", "value"| xyseries "guid", "parameter", "value" | fields "guid" "type" "Start Time" "End Time" "Duration"  | eval fields "Start Time" = strftime("Start Time", "%d/%m/%y %H:%M:%S") | sort 0 - "Start Time" &amp;lt;/query&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;as i explained start time is not reformated as expected it's on orignal format!&lt;/P&gt;
&lt;P&gt;guid type start time end time duration &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="147px"&gt;2024-05-20T04:00:53.536Z&lt;/TD&gt;
&lt;TD width="97.1px"&gt;incremental&lt;/TD&gt;
&lt;TD width="147px"&gt;2024-05-20T04:00:53.847Z&lt;/TD&gt;
&lt;TD width="147px"&gt;2024-05-20T04:01:05.815Z&lt;/TD&gt;
&lt;TD width="75px"&gt;00:00:12&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="40px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;Laurent&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 12:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/688150#M234649</guid>
      <dc:creator>Laurent</dc:creator>
      <dc:date>2024-05-21T12:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/688194#M234656</link>
      <description>&lt;P&gt;Is "Start Time" an epoch time?&lt;/P&gt;&lt;P&gt;If not, you need to parse it to an epoch time before formatting to a different format. Since you are sorting, you should parse, sort, then format.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 16:20:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/688194#M234656</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-21T16:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/688365#M234684</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;no start time is in this format&amp;nbsp;&lt;SPAN&gt;2024-05-20T04:00:53.847Z and after the eval the result is the same&amp;nbsp;2024-05-20T04:00:53.847Z ! how to put on epoch time and transform it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Laurent&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 15:45:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/688365#M234684</guid>
      <dc:creator>Laurent</dc:creator>
      <dc:date>2024-05-22T15:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/688373#M234687</link>
      <description>&lt;P&gt;You need to use strptime() to parse the time string into an epoch time.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 16:33:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/688373#M234687</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-22T16:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/688473#M234715</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;i have done the following query but this is not affecting the result of the column Start Time on the result!&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;eval fields "Start Time" = strftime(strptime("Start Time", "%FT%T.%Q%Z"), "%F %T") | reverse&lt;/LI-CODE&gt;
&lt;P&gt;When i try directly on the value of this fields whith a query&amp;nbsp; it's works!&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="xxx" x   |  table "Interface" "Status"| stats latest("Status") as latest_time by "Interface"| eval latest_time=strftime(strptime(latest_time, "%FT%T.%Q%Z"), "%F %T") | sort 0 - latest_time&lt;/LI-CODE&gt;
&lt;P&gt;i think it's more a problem with the position of the eval on the query which doesn't affect the display!&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;Laurent&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 14:33:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/688473#M234715</guid>
      <dc:creator>Laurent</dc:creator>
      <dc:date>2024-05-23T14:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Tranpose on specific structure events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/688485#M234719</link>
      <description>&lt;P&gt;When you use a field name with embedded spaces on the right hand side of an assignment, it should be in single quotes (not double quotes)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;eval "Start Time" = strftime(strptime('Start Time', "%FT%T.%Q%Z"), "%F %T") | reverse&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 15:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tranpose-on-specific-structure-events/m-p/688485#M234719</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-05-23T15:18:59Z</dc:date>
    </item>
  </channel>
</rss>

