<?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: Lookups with backslash in key in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookups-with-backslash-in-key/m-p/197921#M57220</link>
    <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;i retested and you are absolutely right!&lt;BR /&gt;&lt;BR /&gt;
1.) \ in any lookup is not a problem.&lt;BR /&gt;&lt;BR /&gt;
2.) Its MSSQL not MSSSQL&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;
Jens&lt;/P&gt;</description>
    <pubDate>Mon, 24 Mar 2014 08:52:26 GMT</pubDate>
    <dc:creator>JensT</dc:creator>
    <dc:date>2014-03-24T08:52:26Z</dc:date>
    <item>
      <title>Lookups with backslash in key</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookups-with-backslash-in-key/m-p/197919#M57218</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We're analazing database logs. From SyBase, Oracle and MSSQL.&lt;BR /&gt;&lt;BR /&gt;
MSSQL full db instances contain a &lt;CODE&gt;\&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;
e.g. &lt;CODE&gt;MSNG123\MyInstance&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;We want to use a lookup to enrich the data.&lt;/P&gt;

&lt;P&gt;It works fine with the lookup command. But not using the automatic lookup.&lt;BR /&gt;&lt;BR /&gt;
Any suggestions?&lt;BR /&gt;&lt;BR /&gt;
Using Splunk 4.3.6&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;
Jens&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2014 12:16:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookups-with-backslash-in-key/m-p/197919#M57218</guid>
      <dc:creator>JensT</dc:creator>
      <dc:date>2014-03-22T12:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with backslash in key</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookups-with-backslash-in-key/m-p/197920#M57219</link>
      <description>&lt;P&gt;Hi JensT,&lt;/P&gt;

&lt;P&gt;to make it short, this works as well with the automatic lookup. I did a quick test on &lt;CODE&gt;VERSION=4.3.6 BUILD=153775 PRODUCT=splunk PLATFORM=Linux-x86_64&lt;/CODE&gt; with a lookup file containing the following data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host,database
myhost,"foo\myDB"
#myhost,bar\\yourDB
#myhost,'bar\yourDB'
#myhost,baryourDB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I did setup an automatic lookup for sourcetype, source and host and all three of them were working. I was able to get back database values like &lt;CODE&gt;foo\myDB&lt;/CODE&gt; or &lt;CODE&gt;'bar\yourDB'&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I think the problem is, that either the sourcetype, source or host name do not match. For example automatic lookup in my test for &lt;CODE&gt;sourcetype=*&lt;/CODE&gt; did not work, but with &lt;CODE&gt;sourcetype=splunkd_access&lt;/CODE&gt; it worked. &lt;/P&gt;

&lt;P&gt;I did use a &lt;CODE&gt;run everywhere&lt;/CODE&gt; search like this: &lt;CODE&gt;index=_internal | head 1 | table host database&lt;/CODE&gt; which will return one event of &lt;CODE&gt;sourcetype=splunkd_access&lt;/CODE&gt; and this was my test automatic lookup in &lt;CODE&gt;props.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunkd_access]
LOOKUP-mydb = mydatabase host AS host OUTPUTNEW database AS database
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the result will be this:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://answers.splunk.com//storage/Screenshot_from_2014-03-24_09:27:00.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;PS: Grüsse aus Basel &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 08:28:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookups-with-backslash-in-key/m-p/197920#M57219</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-03-24T08:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with backslash in key</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookups-with-backslash-in-key/m-p/197921#M57220</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;i retested and you are absolutely right!&lt;BR /&gt;&lt;BR /&gt;
1.) \ in any lookup is not a problem.&lt;BR /&gt;&lt;BR /&gt;
2.) Its MSSQL not MSSSQL&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;
Jens&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 08:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookups-with-backslash-in-key/m-p/197921#M57220</guid>
      <dc:creator>JensT</dc:creator>
      <dc:date>2014-03-24T08:52:26Z</dc:date>
    </item>
  </channel>
</rss>

