All Apps and Add-ons

Why is there a bug in Splunk App for Lookup File Editing not using root_endpoint?

rain
Engager

Splunk App for Lookup File Editing version 3.6.0 works fine, but version 4.0.1 does not use root_endpoint.

Downgrade to 3.6.0 and it works fine.

 

settings:

splunk:
  conf:
    - key: web
      value:
        directory: /opt/splunk/etc/system/local
        content:
          settings:
          root_endpoint: /splunk

 

Expected results:  https://server/splunk/ko-KR/app/lookup_editor/lookup_edit......

v4.0.1 : https://server/app/lookup_editor/lookup_edit......

Labels (1)
0 Karma
1 Solution

burwell
SplunkTrust
SplunkTrust

This appears to be a bug in Lookup Editor 4.0.1: It is not honoring the locale OR the root_endpoint

I will file a bug about this.

View solution in original post

0 Karma

burwell
SplunkTrust
SplunkTrust

Hi @rain  I did a quick experiment as follows and did not have an issue with the lookup editor. 4.0 The path was correct as expected (/splunk was added).

 

/opt/splunk/etc/system/local/web.conf                              root_endpoint = /splunk

 

0 Karma

rain
Engager

Since I'm using a free license, I can't seem to open a case.

The root_endpoint in the /opt/splunk/etc/system/local/web.conf file is set correctly, and Splunk is working fine.

I'm sorry, I didn't write it down clearly enough.

If you use Lookup editor v4.0.1,
https://splunk_address/splunk/ko-KR/app/lookup_editor/lookup_list
page, the links are looking incorrectly like this
https://splunk_address/app/lookup_editor/lookup_edit?...

They should look like this
https://splunk_address/splunk/ko-KR/app/lookup_editor/lookup_edit?...

In Lookup editor v3.6.0 and earlier, it looks fine using the root_endpoint value.

0 Karma

burwell
SplunkTrust
SplunkTrust

Hi. I am not seeing this issue. Here's the output from btool to show the root_endpoint is splunk

 

/opt/splunk/bin/splunk btool web list --debug | grep root
/opt/splunk/etc/system/local/web.conf                              root_endpoint = /splunk

 

 

If I click on the lookup editor I see this URL

https://server:port/splunk/en-US/app/lookup_editor/lookup_list

 

So /splunk is there in the URL and the lookup editor works.

Debugging ideas

1) run btool to make sure you have the endpoint setup as expected
2) possibly look in your logs for errors

 

0 Karma

rain
Engager

For testing, I did a clean install of Splunk enterprise v9.0.5 as a docker image, and got the same results.

After the initial installation, I logged in with admin // password and installed the splunk-app-for-lookup-file-editing_401.tgz

 

- btool results

sudo /opt/splunk/bin/splunk btool web list --debug | grep root
/opt/splunk/etc/system/local/web.conf root_endpoint = /splunk

 

- screenshot of test instance

screenshot_sample.png

0 Karma

burwell
SplunkTrust
SplunkTrust

hi @rain Thanks for the very thorough testing and screenshot.

So I looked at my test instance and actually I do see what you are seeing when you hover over a lookup: the root endpoint "/splunk" is not there BUT when I click on the csv in the lookup editor, I am able to edit the lookup. 

Did you try to edit a lookup? I don't get an error at all and things do seem to work.

 

0 Karma

rain
Engager

Only URLs starting with /splunk are delivered to Splunk through reverse-proxy, so it does not work in my environment.

0 Karma

burwell
SplunkTrust
SplunkTrust

This appears to be a bug in Lookup Editor 4.0.1: It is not honoring the locale OR the root_endpoint

I will file a bug about this.

0 Karma

rain
Engager

For the test, /app/lookup_editor URL was also set to reverse-proxy toward splunk, but it did not work properly, so currently downgraded to v3.6.0.
If I connect directly to the splunk using a port without reverse-proxy, it works normally as you said.
Thank you.

0 Karma

burwell
SplunkTrust
SplunkTrust

Hi. Can you file a case with splunk support about this?

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...