Refine your search:

Working with a group doing radiusScripted authentication.

We upgraded to 4.1.3 today from 4.1.2 and I noticed this in the logs: 06-09-2010 09:00:08.416 DEBUG AuthenticationManagerScripted - First 100 characters of trimmed script output: 'Traceback (most recent call last): File "/opt/splunk/bin/runScript.py", line 69, in e'

Using strings on splunk-4.1.3/bin/splunkd I see: 'First 100 characters of trimmed script output: '%s'

I do not see this line in previous versions of 4.1.X.

  1. How can I override this "feature" and see more DEBUG output?
  2. Is there any possibility that this "100 character" throttle effects what is parsed by the authentication system or just what is sent to splunkd.log?

Thanks

asked 09 Jun '10, 22:06

sdwilkerson's gravatar image

sdwilkerson
7442111
accept rate: 36%

edited 19 Jun '10, 18:43

Note: Although I still would like an answer to "1" above, I do feel like I successfully tested out "2" and Splunk DOES use all of the output from a script even though only the first 100 characters are sent do splunkd.log. I would love some input from dev/PM on this when possible.

(19 Jun '10, 18:45) sdwilkerson

2 Answers:

The output is trimmed for those debug messages only, in order to splunkd.log sane. Previously, we would log the entire script output for each invocation, which was much too verbose.

For instance, imagine the getUsers() function with thousands of users - we wouldn't want to log that. In the majority of cases, our logger would only report something like "Tried to log a xxx byte message, ignoring..." instead of the intended debug message.

Keep in mind this logging output is only meant to provide a brief sanity check on the script. The proper way to debug the script itself is by testing it on its own, without interacting with splunkd. For more information on that, see "Testing the script" in our newly revamped scripted auth docs:

http://www.splunk.com/base/Documentation/latest/Admin/ConfigureSplunktousePAMorRADIUSauthentication

link

answered 28 Jun '10, 20:13

Marklar's gravatar image

Marklar
2063
accept rate: 40%

edited 28 Jun '10, 20:50

jrodman's gravatar image

jrodman ♦
5.8k2515

Whoa, I like the new ScriptedAuth doc.

Thanks Marklar and Josh.

(29 Jun '10, 10:52) sdwilkerson

It looks like there's no facility to get the entire output at this point. I will log an item to request the full output.

Short term options: 1 - drop in a wrapper to dup the output to a file 2 - strace the splunkd child process with flags to get all the text, and see it passed through the read calls along the pipe

link

answered 25 Jun '10, 22:33

jrodman's gravatar image

jrodman ♦
5.8k2515
accept rate: 42%

Thanks for the response Josh. Can you tell me why PM added this restriction? I guess I was wondering, what scenario caused the condition that resulted in this protection being added? Were splunkd.log DOSed?

(27 Jun '10, 01:50) sdwilkerson

I expect it was trimmed because a valid reponse is always 1 line long. The use case presented here is debugging a failure though.

(28 Jun '10, 18:27) jrodman ♦

Well, debugging a failure, or rather, developing the authentication scripts in a custom setup. Since these messages only reach the splunkd.log when ScriptedAuthentication is in debug mode, it seems strange to me to truncate it. I mean, if you are in debug mode, then you are debugging; therefore, seeing all of the output is valuable. I figured I was just missing something here and there was some other reason for the change in 4.1.3. Thanks again for following up.

(29 Jun '10, 01:14) sdwilkerson
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×25
×10

Asked: 09 Jun '10, 22:06

Seen: 615 times

Last updated: 28 Jun '10, 20:50

Copyright © 2005-2012 Splunk, Inc. All rights reserved.