Refine your search:

I tried to run the Search example in 'http://dev.splunk.com/view/java-sdk-getting-started/SP-CAAAEDF'

C:Program Filessplunk-sdk-java>java -jar dist/examples/search.jar "search * | head 10" --output_mode=csv

result : Error: query 'search * | head 10' is invalid:

What is the problum?

asked 25 Jan, 00:42

joy76's gravatar image

joy76
311
accept rate: 0%


2 Answers:

I got it the problum. Maybe i think .splunkrc file configuration is wrong.

So, Below is run well.

java -jar dist/examples/search.jar --username "admin" --password "changeme" "search * | head 10" --output_mode=csv

link

answered 25 Jan, 00:51

joy76's gravatar image

joy76
311
accept rate: 0%

edited 25 Jan, 01:05

Sounds like we could do with better error reporting. I'll see to it that this is fixed.

link

answered 25 Jan, 11:11

wcolgate_splunk's gravatar image

wcolgate_splunk
812
accept rate: 14%

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:

×32
×23

Asked: 25 Jan, 00:42

Seen: 494 times

Last updated: 25 Jan, 11:11

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