Deployment Architecture

UNIX last event /var/log/wtmp

rossikwan
Path Finder

Hi all,

My UNIX (Solaris) host installed Splunk universal forwarder in which some kind of monitor in inputs.conf is successful indexed.

But I would like to retrieve daily login information for the UNIX servers without luck to retrieve the events from last command.

Could anyone here help for the UNIX login info. to br indexed to Splunk?
Thanks

Rossi

Tags (5)
0 Karma
1 Solution

mikelanghorst
Motivator

By "without luck" are you referring to your attempts to index the wtmp file data?

Splunk for Unix and Linux does have inputs and the necessary script to input this data.

http://splunk-base.splunk.com/apps/22314/splunk-for-unix-and-linux is for splunk servers and
http://splunk-base.splunk.com/apps/33800/splunk-for-unix-and-linux-technology-add-on if you prefer for your Universal Forwarders (if applicable).

View solution in original post

0 Karma

rossikwan
Path Finder

in UNIX app, there has script to retrieve the last from various OS include IBM AIX, SUN Solaris, Linux different distribution... Thanks.

0 Karma

rossikwan
Path Finder

Yes, other kind of data are already sent to Splunk instance and could be searched & reporting.

And I tried to use "script input" which using "last" command is not success, due to formatting as below stated.

http://splunk-base.splunk.com/answers/5844/can-i-splunk-my-wtmp-files

"This can be more elaborate since "last" doesn't have tailing or time span selection capabilities, but advanced shell scripting and cron can be used to set this up."

[Script Input]
"/usr/bin/last -f /opt/logs/acctlog/wtmpx.20111114"
where wtmpx.$DATE$ is the last date "/var/adm/wtmpx" truncated.

0 Karma

mikelanghorst
Motivator

By "without luck" are you referring to your attempts to index the wtmp file data?

Splunk for Unix and Linux does have inputs and the necessary script to input this data.

http://splunk-base.splunk.com/apps/22314/splunk-for-unix-and-linux is for splunk servers and
http://splunk-base.splunk.com/apps/33800/splunk-for-unix-and-linux-technology-add-on if you prefer for your Universal Forwarders (if applicable).

0 Karma

rossikwan
Path Finder

Let's check how these apps could be help in this items. Get back here after check, thanks

0 Karma

Drainy
Champion

Do you have log data being monitored already? (Is that what you mean by monitor in inputs?) and do you just want to understand how to search the data?

0 Karma

Takajian
Builder

Splunk is able to monitor secure log on unix. Is the following setting meet your requirement?

configure inputs.conf like as bellow:

[monitor://var/log/secure*]
sourcetype = *******

0 Karma

rossikwan
Path Finder

Those UNIX servers do not have any file named /var/log/secure*

0 Karma
Get Updates on the Splunk Community!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...