Refine your search:

I have a search command that looks like:

| mysqlquery spec="users" query="select * from users" | collect index="new_users_idx" file="new_users_$timestamp$"

But when I use the file option it never goes into "new_user_idx" index. It always goes into the "main" index. I'm currently using Splunk 4.3

Am I doing something wrong?

asked 01 Mar '12, 13:35

imosquera's gravatar image

imosquera
413
accept rate: 33%

edited 01 Mar '12, 13:42


One Answer:

i have tested and it seems that you need to add .stash_new or .stash then it goes to the right index:

| mysqlquery spec="users" query="select * from users" | collect index="new_users_idx" file="new_users_$timestamp$.stash"
link

answered 03 Mar '12, 04:12

MarioM's gravatar image

MarioM
2.7k47
accept rate: 20%

edited 03 Mar '12, 04:15

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:

×1,651
×13

Asked: 01 Mar '12, 13:35

Seen: 783 times

Last updated: 03 Mar '12, 04:15

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