Refine your search:

If I recall correctly, there wasn't a way to set/offset the TZ for a syslog host. Has this changed?

asked 25 Apr '11, 13:48

the_wolverine's gravatar image

the_wolverine ♦
5.2k162085
accept rate: 52%


2 Answers:

wolverine,

I believe this issue has to do with the order by which an event gets processed. The host extraction performed on syslog data at index time occurs after Splunk applies TZ properties. As a result, TZ properties applied on the extracted host field do not take affect. This is mostly a problem for syslog data that is not collected directly from the host which it originated.

Update: I do not have a definitive solution/workaround. You could try routing the data through a full forwarder before you index; where the indexer input is set to "parsingQueue" for a second round of parsing.

link

answered 26 Apr '11, 15:19

hazekamp's gravatar image

hazekamp
2.2k218
accept rate: 38%

edited 26 Apr '11, 15:44

Thank you for your response, hazedev. I understand why it does not work. I'm wondering if a solution was provided recently. I recall there was a possible workaround for this.

(26 Apr '11, 15:22) the_wolverine ♦

Could you not set the TZ at the [source::514] level? This would of course set the TZ for the entire syslog stream.

If we knew what key TZ= in props.conf sets, we could possibly write an index-time transform for it:

[tz_for_host1]
SOURCE_KEY = MetaData:Host
REGEX = host1
DEST_KEY = (whatever key TZ is)
FORMAT = The/Timezone
link

answered 17 May '11, 15:29

Jason's gravatar image

Jason
3.6k71074
accept rate: 43%

edited 17 May '11, 15:32

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:

×371
×61
×26

Asked: 25 Apr '11, 13:48

Seen: 960 times

Last updated: 17 May '11, 15:32

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