<?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: Append a lookup value from csv to a chart table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Append-a-lookup-value-from-csv-to-a-chart-table/m-p/701603#M237982</link>
    <description>&lt;P&gt;If you have lots of events, performing lookup after stats will be more efficient.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*
| chart count by X
| lookup my-lookup.csv Y AS X OUTPUT X_description&lt;/LI-CODE&gt;&lt;P&gt;This will add an extra field. &amp;nbsp;If you don't want to see X, just remove it with fields command.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2024 03:29:09 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2024-10-11T03:29:09Z</dc:date>
    <item>
      <title>Append a lookup value from csv to a chart table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-a-lookup-value-from-csv-to-a-chart-table/m-p/701500#M237951</link>
      <description>&lt;P&gt;I am looking to append a value in a lookup csv to an existing search&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=*
|fields _time,x |chart count(_raw) by X&lt;/LI-CODE&gt;
&lt;P&gt;and I want to replace(or append) the X with a value(name) from a csv so I can table the results.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 14:08:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-a-lookup-value-from-csv-to-a-chart-table/m-p/701500#M237951</guid>
      <dc:creator>Topher22</dc:creator>
      <dc:date>2024-10-10T14:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Append a lookup value from csv to a chart table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-a-lookup-value-from-csv-to-a-chart-table/m-p/701504#M237954</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/273076"&gt;@Topher22&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you can append or replace a value , as you would, simply using the lookup command:&lt;/P&gt;&lt;P&gt;if in the lookup the field to replace is Y and must be related to X from the main search and you want to use the value X_descrition from the lookup, you can use something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*
| lookup my-lookup.csv Y AS X OUTPUT X_description
| chart count(_raw) by X_description&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;You can find more infos about the lookup command at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.3.1/SearchReference/Lookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.3.1/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 06:13:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-a-lookup-value-from-csv-to-a-chart-table/m-p/701504#M237954</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-10-10T06:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Append a lookup value from csv to a chart table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-a-lookup-value-from-csv-to-a-chart-table/m-p/701603#M237982</link>
      <description>&lt;P&gt;If you have lots of events, performing lookup after stats will be more efficient.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*
| chart count by X
| lookup my-lookup.csv Y AS X OUTPUT X_description&lt;/LI-CODE&gt;&lt;P&gt;This will add an extra field. &amp;nbsp;If you don't want to see X, just remove it with fields command.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 03:29:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-a-lookup-value-from-csv-to-a-chart-table/m-p/701603#M237982</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-10-11T03:29:09Z</dc:date>
    </item>
  </channel>
</rss>

