<?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: transpose on selected fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566220#M197332</link>
    <description>&lt;LI-CODE lang="markup"&gt;| addinfo
| eval date=info_min_time
| fieldformat date=strftime(date,"%m-%d-%Y")
| fields - info_*&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 07 Sep 2021 22:13:52 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-09-07T22:13:52Z</dc:date>
    <item>
      <title>transpose on selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566154#M197297</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I want to transpose few fields as below ..&lt;/P&gt;&lt;P&gt;(index=abc OR index=def) category= * OR NOT blocked =0 AND NOT blocked =2&lt;BR /&gt;|rex field=index "(?&amp;lt;Local_Market&amp;gt;[^cita]\w.*?)_"&lt;BR /&gt;| stats count(Local_Market) as Blocked by Local_Market&lt;BR /&gt;| addcoltotals col=t labelfield=Local_Market label="Total"&lt;BR /&gt;| append [search (index=abc OR index=def) blocked =0 | rex field=index "(?&amp;lt;Local_Market&amp;gt;\w.*?)_"&lt;BR /&gt;| stats count as Detected by Local_Market&lt;BR /&gt;| addcoltotals col=t labelfield=Local_Market label="Total"]&lt;BR /&gt;| stats values(*) as * by Local_Market&lt;BR /&gt;| transpose 0 header_field=Local_Market column_name=Local_Market&lt;BR /&gt;&lt;BR /&gt;here i want to add one column of date ( eval Time=strftime(_time,"%m/%d/%y")) which should not be transpose ..&lt;/P&gt;&lt;P&gt;date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Local_Market&amp;nbsp; &amp;nbsp; Total&amp;nbsp; &amp;nbsp;a&amp;nbsp; b&amp;nbsp; &amp;nbsp;c&lt;BR /&gt;05-09-2021&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;INDIA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; 1&amp;nbsp; 1&lt;BR /&gt;05-09-2021&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;UK&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&amp;nbsp; 2&amp;nbsp; 0&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 14:35:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566154#M197297</guid>
      <dc:creator>Susha</dc:creator>
      <dc:date>2021-09-07T14:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: transpose on selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566165#M197303</link>
      <description>&lt;P&gt;_time does not exist due to the stats commands removing it from the event pipeline. Which value of time do you want to use? now() or earliest/latest from the search timeframe or something else?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 14:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566165#M197303</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-07T14:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: transpose on selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566169#M197306</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; this report is scheduled for yesterday so i want to give yesterday date only .. like only 09-06-2021&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 14:57:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566169#M197306</guid>
      <dc:creator>Susha</dc:creator>
      <dc:date>2021-09-07T14:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: transpose on selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566211#M197328</link>
      <description>&lt;P&gt;I don't follow. You want to have the date column left alone and all other columns transposed? It can't work even from simply algebraic point of view - you have two rows but three columns you want to transpose to rows.&lt;/P&gt;&lt;P&gt;Or is the table you presented the desired format?&lt;/P&gt;&lt;P&gt;Either way, I'd just add "static" column or row and transpose it if needed.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 20:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566211#M197328</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-07T20:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: transpose on selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566220#M197332</link>
      <description>&lt;LI-CODE lang="markup"&gt;| addinfo
| eval date=info_min_time
| fieldformat date=strftime(date,"%m-%d-%Y")
| fields - info_*&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Sep 2021 22:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566220#M197332</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-07T22:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: transpose on selected fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566880#M197547</link>
      <description>&lt;P&gt;thanks a lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; its working perfectly .. just one more thing .. as of now date column is coming at last column .. how can we place it in first column ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 15:03:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transpose-on-selected-fields/m-p/566880#M197547</guid>
      <dc:creator>Susha</dc:creator>
      <dc:date>2021-09-13T15:03:46Z</dc:date>
    </item>
  </channel>
</rss>

