<?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 Help using outputlookup command to display fields on CSV header. in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Help-using-outputlookup-command-to-display-fields-on-CSV-header/m-p/504915#M9047</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I use a scheduled search in order to generate a CSV lookup automatically:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;patch&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| table Computer Site OSVersion
| rename Computer as host
| outputlookup host.csv&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But on the first line of the CSV, I need to display the 3 fields on the header like host, site, and OS version.&lt;/P&gt;
&lt;P&gt;If I add these fields in the CSV before running the search, I would like to know if these fields are going to be deleted when the search is finished?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2020 16:43:30 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2020-06-18T16:43:30Z</dc:date>
    <item>
      <title>Help using outputlookup command to display fields on CSV header.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Help-using-outputlookup-command-to-display-fields-on-CSV-header/m-p/504915#M9047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I use a scheduled search in order to generate a CSV lookup automatically:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;patch&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| table Computer Site OSVersion
| rename Computer as host
| outputlookup host.csv&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But on the first line of the CSV, I need to display the 3 fields on the header like host, site, and OS version.&lt;/P&gt;
&lt;P&gt;If I add these fields in the CSV before running the search, I would like to know if these fields are going to be deleted when the search is finished?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 16:43:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Help-using-outputlookup-command-to-display-fields-on-CSV-header/m-p/504915#M9047</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-06-18T16:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: help on outputlookup command</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Help-using-outputlookup-command-to-display-fields-on-CSV-header/m-p/504932#M9048</link>
      <description>&lt;P&gt;The outputlookup command will put the header row in place as well.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 09:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Help-using-outputlookup-command-to-display-fields-on-CSV-header/m-p/504932#M9048</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2020-06-18T09:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: help on outputlookup command</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Help-using-outputlookup-command-to-display-fields-on-CSV-header/m-p/504936#M9049</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can use outputlookup on an existing lookup, so you can create the lookup header (with the fields you like) using e.g. Lookup Editor App.&lt;/P&gt;&lt;P&gt;What do you need to create: a lookup or a csv file?&lt;/P&gt;&lt;P&gt;If a lookup, you don't need to insert header.&lt;/P&gt;&lt;P&gt;If a csv file, use outputcsv instead outputlookup and header is automatically inserted.&lt;/P&gt;&lt;P&gt;You could also add the header but it it's unuseful.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 10:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Help-using-outputlookup-command-to-display-fields-on-CSV-header/m-p/504936#M9049</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-06-18T10:12:42Z</dc:date>
    </item>
  </channel>
</rss>

