<?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: Extract 'table structured' data from log file using Perl. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-table-structured-data-from-log-file-using-Perl/m-p/518811#M146027</link>
    <description>&lt;P&gt;you can replace send_ids with name as you described, but this would be pain for you if there are high number of IDs for which you want to translate.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario 1&lt;/STRONG&gt; : you can convert them using Search Processing Language.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| your search and add below search to your search
| eval send_id=case(send_id=="96","Alex",send_id=="65","James")&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Scenario 2:&lt;/STRONG&gt; where you can make use of Splunk knowledge objects - Lookups&lt;/P&gt;&lt;P&gt;I have made a video on how to use Lookups, you can find it useful.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=cwEzgY0lAts&amp;amp;t=456s" target="_blank"&gt;https://www.youtube.com/watch?v=cwEzgY0lAts&amp;amp;t=456s&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 06:14:06 GMT</pubDate>
    <dc:creator>thambisetty</dc:creator>
    <dc:date>2020-09-10T06:14:06Z</dc:date>
    <item>
      <title>Extract 'table structured' data from log file using Perl.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-table-structured-data-from-log-file-using-Perl/m-p/518784#M146011</link>
      <description>&lt;P&gt;I have a log file in a table structured form like this,&lt;/P&gt;&lt;P&gt;Code send_id dest_id&lt;/P&gt;&lt;P&gt;AW 96 45&lt;/P&gt;&lt;P&gt;BX 65 78&lt;/P&gt;&lt;P&gt;Now here I have to change that send_id column id's to the name(like 96 = Alex and 65= James) and regenerate the log file like the below format.&lt;/P&gt;&lt;P&gt;Code send_id dest_id&lt;/P&gt;&lt;P&gt;AW Alex 45&lt;/P&gt;&lt;P&gt;BX James 78&lt;/P&gt;&lt;P&gt;How do I extract it and again regenerate it after changing?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 02:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-table-structured-data-from-log-file-using-Perl/m-p/518784#M146011</guid>
      <dc:creator>A3gupta</dc:creator>
      <dc:date>2020-09-10T02:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract 'table structured' data from log file using Perl.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-table-structured-data-from-log-file-using-Perl/m-p/518811#M146027</link>
      <description>&lt;P&gt;you can replace send_ids with name as you described, but this would be pain for you if there are high number of IDs for which you want to translate.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario 1&lt;/STRONG&gt; : you can convert them using Search Processing Language.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| your search and add below search to your search
| eval send_id=case(send_id=="96","Alex",send_id=="65","James")&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Scenario 2:&lt;/STRONG&gt; where you can make use of Splunk knowledge objects - Lookups&lt;/P&gt;&lt;P&gt;I have made a video on how to use Lookups, you can find it useful.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=cwEzgY0lAts&amp;amp;t=456s" target="_blank"&gt;https://www.youtube.com/watch?v=cwEzgY0lAts&amp;amp;t=456s&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 06:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-table-structured-data-from-log-file-using-Perl/m-p/518811#M146027</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-10T06:14:06Z</dc:date>
    </item>
  </channel>
</rss>

