<?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 Missing columns when exporting to CSV in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101830#M21333</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a search that returns 3 columns of data allowing us to check the first logon of the day (or last logoff of the dat) for accounts. (see below). The issue is that when we go to Export to CSV when logged on as a limited access user, we only get the first 2 columns. So, we list Date, UserName, and Time, and in the export we only get Date and UserName. If we go in as the admin user we get all 3 columns correctly. I am not sure what permissions options would be required to add that extra column.&lt;/P&gt;

&lt;P&gt;We currently use v4.1.3 but are planning to upgrade.&lt;/P&gt;

&lt;P&gt;sourcetype=WinEventLog:Security eventtype=winlogon | bucket span=1h _time AS tb | convert timeformat="%d/%m/%Y" ctime(tb) AS Date | stats min(_time) AS mt by Date,User_Name | convert mktime(mt) | convert timeformat="%H:%M:%S" ctime(mt) AS "Logon Time" |dedup Date keepevents=t | fields - mt&lt;/P&gt;

&lt;P&gt;Thanks for any thoughts on this !&lt;/P&gt;

&lt;P&gt;Rhys&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2010 06:06:25 GMT</pubDate>
    <dc:creator>rhysjones</dc:creator>
    <dc:date>2010-12-09T06:06:25Z</dc:date>
    <item>
      <title>Missing columns when exporting to CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101830#M21333</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a search that returns 3 columns of data allowing us to check the first logon of the day (or last logoff of the dat) for accounts. (see below). The issue is that when we go to Export to CSV when logged on as a limited access user, we only get the first 2 columns. So, we list Date, UserName, and Time, and in the export we only get Date and UserName. If we go in as the admin user we get all 3 columns correctly. I am not sure what permissions options would be required to add that extra column.&lt;/P&gt;

&lt;P&gt;We currently use v4.1.3 but are planning to upgrade.&lt;/P&gt;

&lt;P&gt;sourcetype=WinEventLog:Security eventtype=winlogon | bucket span=1h _time AS tb | convert timeformat="%d/%m/%Y" ctime(tb) AS Date | stats min(_time) AS mt by Date,User_Name | convert mktime(mt) | convert timeformat="%H:%M:%S" ctime(mt) AS "Logon Time" |dedup Date keepevents=t | fields - mt&lt;/P&gt;

&lt;P&gt;Thanks for any thoughts on this !&lt;/P&gt;

&lt;P&gt;Rhys&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2010 06:06:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101830#M21333</guid>
      <dc:creator>rhysjones</dc:creator>
      <dc:date>2010-12-09T06:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Missing columns when exporting to CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101831#M21334</link>
      <description>&lt;P&gt;Just to clarify - when the limited access user runs the query interactively, are all of the columns available? They're only missing when you actually do the export?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2010 07:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101831#M21334</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-12-09T07:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Missing columns when exporting to CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101832#M21335</link>
      <description>&lt;P&gt;There are problems in 4.1.3 and earlier when you have field names that have a space in them and you perform an export from the Web GUI. (Bug SPL-30825)&lt;/P&gt;

&lt;P&gt;It should have been fixed as of 4.1.4. Note the the outputcsv command is not subject to this problem. You should also be able to work around this by changing your column name "Logon Time" to "Logon_Time" (or "LogonTime" or whatever).&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2010 14:28:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101832#M21335</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-12-09T14:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Missing columns when exporting to CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101833#M21336</link>
      <description>&lt;P&gt;Thankyou. I'll give that a try. Didn't occur to me to look at spaces in the names ! Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2010 08:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101833#M21336</guid>
      <dc:creator>rhysjones</dc:creator>
      <dc:date>2010-12-10T08:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Missing columns when exporting to CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101834#M21337</link>
      <description>&lt;P&gt;Yes, thats correct, all columns are visible on screen. This is only a problem for the limited access user when using the Action / Export feature in the WEB GUI. I'll try the suggestion below regarding spaces in the field name and see if that helps. Thankyou.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2010 08:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101834#M21337</guid>
      <dc:creator>rhysjones</dc:creator>
      <dc:date>2010-12-10T08:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Missing columns when exporting to CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101835#M21338</link>
      <description>&lt;P&gt;Can't blame you. It's a bug.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2010 15:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101835#M21338</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-12-10T15:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Missing columns when exporting to CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101836#M21339</link>
      <description>&lt;P&gt;I am actually going to be away for a few weeks so I'll have to give this a go when I return. THankyou for the feedback !&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2010 05:40:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101836#M21339</guid>
      <dc:creator>rhysjones</dc:creator>
      <dc:date>2010-12-13T05:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Missing columns when exporting to CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101837#M21340</link>
      <description>&lt;P&gt;I can now confirm that adding an "_" in the column name (removing the blank space) resolves the problem. Thanks gkanapathy.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2011 11:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101837#M21340</guid>
      <dc:creator>rhysjones</dc:creator>
      <dc:date>2011-01-07T11:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Missing columns when exporting to CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101838#M21341</link>
      <description>&lt;P&gt;When I am doing export search using java sdk, I am missing columns when I running this query.&lt;/P&gt;

&lt;P&gt;search sourcetype=sourcetype_1 OR (sourcetype=sourcetype_2 NOT (Session_Duration="Session Duration"))|rex field=sourcetype "(?&lt;SERVER_TYPE&gt;[^&lt;EM&gt;\W]+)&lt;/EM&gt;(?&lt;SOURCE_LOG_TYPE&gt;[^_\W]+)" |eval client_ip_address = Client_Address|eval Document_Session_Duration = Session_Duration| eval Message=replace(Message, ",","-")| eval Document=replace(Document, ",","-")| iplocation client_ip_address|table Timestamp,User,Document,Message,Document_Session_Duration,server_type, source_log_type, host, client_ip_address, City, Country&lt;/SOURCE_LOG_TYPE&gt;&lt;/SERVER_TYPE&gt;&lt;/P&gt;

&lt;P&gt;what gives ? I am using splunk 6.1.1&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:04:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Missing-columns-when-exporting-to-CSV/m-p/101838#M21341</guid>
      <dc:creator>shresthas</dc:creator>
      <dc:date>2020-09-28T17:04:36Z</dc:date>
    </item>
  </channel>
</rss>

