Refine your search:

Hey Guys,

I have multiple host in my network using UDP:514 syslog to main index in splunk but now i want to create separate "production" index for critical server. so how should i divert syslog traffic to new index ? I read on google people talking about props.conf but how it will work ?

asked 04 Mar '11, 18:20

satishp's gravatar image

satishp
1114
accept rate: 0%


One Answer:

I've got something similar working where I'm sending specific type syslog msg to a separate index. In my case I'm specifying [syslog] in my props.conf and then doing a regex match for the msg I want in the transforms.conf.

If you're only sending syslog msgs from the host you want, you can probably filter on the host itself to send all msgs to the separate index. Something like the below (I haven't tested this btw)

props.conf
[host::somehost]
TRANSFORMS-syslog-somehost=SYSLOGSOMEHOST

transforms.conf
[SYSLOGSOMEHOST]
REGEX =(.*)
DEST_KEY = _MetaData:Index
FORMAT = YOURINDEX
WRITE_META = true

link

answered 02 May '11, 12:37

briang67's gravatar image

briang67
480210
accept rate: 25%

edited 02 May '11, 12:38

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:

×278

Asked: 04 Mar '11, 18:20

Seen: 2,157 times

Last updated: 02 May '11, 12:38

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