<?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: How to show customized data in output? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-show-customized-data-in-output/m-p/643259#M109613</link>
    <description>&lt;P&gt;There is more than one way to do it. Since you mentioned csv already, &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Knowledge/Aboutlookupsandfieldactions#Types_of_lookups" target="_self"&gt;let's use that&lt;/A&gt;. I'm going to assume it has two columns, uuid and client_id.&lt;/P&gt;&lt;P&gt;You need your csv in Splunk for this of course - so &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Knowledge/Usefieldlookupstoaddinformationtoyourevents#Upload_the_lookup_table_file" target="_self"&gt;either upload it&lt;/A&gt; or create it in Splunk if you haven't done so already. Next, I'd suggest you &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Knowledge/Usefieldlookupstoaddinformationtoyourevents#Create_a_CSV_lookup_definition" target="_self"&gt;create a lookup definition&lt;/A&gt; for your csv file. Then, you'd use your lookup like this:&lt;/P&gt;&lt;PRE&gt;index=this &amp;lt;your search finding UUIDs&amp;gt;&lt;BR /&gt;| lookup your_lookup_definition uuid OUTPUT client_id&lt;BR /&gt;| table _time client_id src_ip method (or whatever other fields you want)&lt;/PRE&gt;&lt;P&gt;If this is something you always want for this type of data, you might want to consider &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Knowledge/DefineanautomaticlookupinSplunkWeb" target="_self"&gt;an automatic lookup&lt;/A&gt;. That would make splunk implicitly run that | lookup command for all searches against e.g. this sourcetype, so you wouldn't need to have it in every SPL explicitly.&lt;/P&gt;</description>
    <pubDate>Sat, 13 May 2023 05:18:13 GMT</pubDate>
    <dc:creator>jeffland</dc:creator>
    <dc:date>2023-05-13T05:18:13Z</dc:date>
    <item>
      <title>How to show customized data in output?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-show-customized-data-in-output/m-p/643257#M109612</link>
      <description>&lt;P&gt;Hi, I've recently started using Splunk logs. I have a query to fetch client IDs who call my APIs. These client IDs are some UUIDs. I would rather like to see a customized name for these IDs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I can save the mapping of the client ID and its easy-to-read client name in a CSV or somewhere and want my Splunk query to show the client name.&lt;/P&gt;&lt;P&gt;Is this possible? Could someone help how to do it?&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 01:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-show-customized-data-in-output/m-p/643257#M109612</guid>
      <dc:creator>avd</dc:creator>
      <dc:date>2023-05-13T01:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to show customized data in output?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-show-customized-data-in-output/m-p/643259#M109613</link>
      <description>&lt;P&gt;There is more than one way to do it. Since you mentioned csv already, &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Knowledge/Aboutlookupsandfieldactions#Types_of_lookups" target="_self"&gt;let's use that&lt;/A&gt;. I'm going to assume it has two columns, uuid and client_id.&lt;/P&gt;&lt;P&gt;You need your csv in Splunk for this of course - so &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Knowledge/Usefieldlookupstoaddinformationtoyourevents#Upload_the_lookup_table_file" target="_self"&gt;either upload it&lt;/A&gt; or create it in Splunk if you haven't done so already. Next, I'd suggest you &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Knowledge/Usefieldlookupstoaddinformationtoyourevents#Create_a_CSV_lookup_definition" target="_self"&gt;create a lookup definition&lt;/A&gt; for your csv file. Then, you'd use your lookup like this:&lt;/P&gt;&lt;PRE&gt;index=this &amp;lt;your search finding UUIDs&amp;gt;&lt;BR /&gt;| lookup your_lookup_definition uuid OUTPUT client_id&lt;BR /&gt;| table _time client_id src_ip method (or whatever other fields you want)&lt;/PRE&gt;&lt;P&gt;If this is something you always want for this type of data, you might want to consider &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/Knowledge/DefineanautomaticlookupinSplunkWeb" target="_self"&gt;an automatic lookup&lt;/A&gt;. That would make splunk implicitly run that | lookup command for all searches against e.g. this sourcetype, so you wouldn't need to have it in every SPL explicitly.&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 05:18:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-show-customized-data-in-output/m-p/643259#M109613</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2023-05-13T05:18:13Z</dc:date>
    </item>
  </channel>
</rss>

