<?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 use a Lookup File with Multiple Static or Dynamic Values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-Lookup-File-with-Multiple-Static-or-Dynamic-Values/m-p/636005#M220936</link>
    <description>&lt;P&gt;This is not a job for lookups. &amp;nbsp;Use regex-based transformation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"(?&amp;lt;device_type&amp;gt;.)(?&amp;lt;building_code&amp;gt;...)(?&amp;lt;department_code&amp;gt;...)(?&amp;lt;function&amp;gt;.)(?&amp;lt;asset_tag&amp;gt;.{7})"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Mar 2023 04:29:39 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2023-03-26T04:29:39Z</dc:date>
    <item>
      <title>How to use a Lookup File with Multiple Static or Dynamic Values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-Lookup-File-with-Multiple-Static-or-Dynamic-Values/m-p/635937#M220922</link>
      <description>&lt;P&gt;We have a standard configuration for our workstations. Several of the fields are static but some are dynamic (but these have a fixed length).&lt;/P&gt;&lt;P&gt;I want to use a lookup table of all the values and apply automatically to a sourcetype.&lt;/P&gt;&lt;P&gt;But I'm not sure how I would go about matching the fields/values with a Lookup Definition.&lt;/P&gt;&lt;P&gt;The standard is&amp;nbsp;&lt;/P&gt;&lt;TABLE width="476"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="385.325px" height="24px"&gt;1=Device Type - Static&lt;/TD&gt;&lt;TD width="89.875px" height="24px"&gt;1 char&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="385.325px" height="24px"&gt;2=Building Code - Static&lt;/TD&gt;&lt;TD width="89.875px" height="24px"&gt;3 chars&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="385.325px" height="24px"&gt;3=Department Code - Static&lt;/TD&gt;&lt;TD width="89.875px" height="24px"&gt;3 chars&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="385.325px" height="24px"&gt;4=Function - Static&lt;/TD&gt;&lt;TD width="89.875px" height="24px"&gt;1 char&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="385.325px" height="24px"&gt;5=Asset Tag - Dynamic&lt;/TD&gt;&lt;TD width="89.875px" height="24px"&gt;7 chars&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So a machine may be named LBL1HRSSABC1234 indicating it's a laptop in Building 1 in HR Services that is Shared with an asset tag of ABC1234.&lt;/P&gt;&lt;P&gt;How could I use a lookup with these 4 static and 1 dynamic values to populate said values when a search is done on a particular host name.&lt;/P&gt;&lt;P&gt;I should mention that I'm confortable creating the lookup and applying it, just not how to get it to match on the criteria above.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 18:07:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-Lookup-File-with-Multiple-Static-or-Dynamic-Values/m-p/635937#M220922</guid>
      <dc:creator>chrisschum</dc:creator>
      <dc:date>2023-03-24T18:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a Lookup File with Multiple Static or Dynamic Values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-Lookup-File-with-Multiple-Static-or-Dynamic-Values/m-p/636005#M220936</link>
      <description>&lt;P&gt;This is not a job for lookups. &amp;nbsp;Use regex-based transformation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"(?&amp;lt;device_type&amp;gt;.)(?&amp;lt;building_code&amp;gt;...)(?&amp;lt;department_code&amp;gt;...)(?&amp;lt;function&amp;gt;.)(?&amp;lt;asset_tag&amp;gt;.{7})"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2023 04:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-Lookup-File-with-Multiple-Static-or-Dynamic-Values/m-p/636005#M220936</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-03-26T04:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a Lookup File with Multiple Static or Dynamic Values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-Lookup-File-with-Multiple-Static-or-Dynamic-Values/m-p/636237#M220956</link>
      <description>&lt;P&gt;That worked like a charm! Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 00:42:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-Lookup-File-with-Multiple-Static-or-Dynamic-Values/m-p/636237#M220956</guid>
      <dc:creator>chrisschum</dc:creator>
      <dc:date>2023-03-28T00:42:13Z</dc:date>
    </item>
  </channel>
</rss>

