<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Extracting usernames from Solaris 9 syslog in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101911#M26321</link>
    <description>&lt;P&gt;Hi guys,&lt;BR /&gt;
I hope this is an easy one for you. We have Solaris 9 boxes sending syslogs to nfs share and our Splunk 4.3 consumes them. We need to generate mgmt reports capturing all user logins to Solaris via mainly SSH and ALOM (SC). I cannot seem to extract the fields correctly for both entry points because the log syntax is different for each log-in method. Here is an example for SSH:&lt;BR /&gt;
"10:23:41.000 AM &amp;lt;38&amp;gt;1 2013-01-28T10:23:41-05:00 solaris_host sshd 26371 - - sshd[26371]: [ID 800047 auth.info] Accepted password for root from 1.2.3.4 port 63843 ssh2&lt;BR /&gt;
source=/nfssoruce/syslogs   host=ssolaris_host"&lt;/P&gt;

&lt;P&gt;and this is for ALOM logins:&lt;BR /&gt;
"10:58:05.000 PM &amp;lt;5&amp;gt;1 2013-01-21T22:58:05-05:00 solaris_host rmclomv - - - rmclomv: [ID 197766 kern.notice] SC Login: User some_user Logged out.&lt;BR /&gt;
source=/nfssoruce/syslogs  host=solaris_host"&lt;/P&gt;

&lt;P&gt;Would anything have a handy regex or lookup for this scenario? In general, what is the best approach to parse Solaris 9 syslogs?&lt;BR /&gt;
Thank you kindly.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:11:46 GMT</pubDate>
    <dc:creator>cgisplunk</dc:creator>
    <dc:date>2020-09-28T13:11:46Z</dc:date>
    <item>
      <title>Extracting usernames from Solaris 9 syslog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101911#M26321</link>
      <description>&lt;P&gt;Hi guys,&lt;BR /&gt;
I hope this is an easy one for you. We have Solaris 9 boxes sending syslogs to nfs share and our Splunk 4.3 consumes them. We need to generate mgmt reports capturing all user logins to Solaris via mainly SSH and ALOM (SC). I cannot seem to extract the fields correctly for both entry points because the log syntax is different for each log-in method. Here is an example for SSH:&lt;BR /&gt;
"10:23:41.000 AM &amp;lt;38&amp;gt;1 2013-01-28T10:23:41-05:00 solaris_host sshd 26371 - - sshd[26371]: [ID 800047 auth.info] Accepted password for root from 1.2.3.4 port 63843 ssh2&lt;BR /&gt;
source=/nfssoruce/syslogs   host=ssolaris_host"&lt;/P&gt;

&lt;P&gt;and this is for ALOM logins:&lt;BR /&gt;
"10:58:05.000 PM &amp;lt;5&amp;gt;1 2013-01-21T22:58:05-05:00 solaris_host rmclomv - - - rmclomv: [ID 197766 kern.notice] SC Login: User some_user Logged out.&lt;BR /&gt;
source=/nfssoruce/syslogs  host=solaris_host"&lt;/P&gt;

&lt;P&gt;Would anything have a handy regex or lookup for this scenario? In general, what is the best approach to parse Solaris 9 syslogs?&lt;BR /&gt;
Thank you kindly.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101911#M26321</guid>
      <dc:creator>cgisplunk</dc:creator>
      <dc:date>2020-09-28T13:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting usernames from Solaris 9 syslog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101912#M26322</link>
      <description>&lt;P&gt;If sshd appears in the event and the rmclomv text is distinct in your events then you can separate out the results in the search criteria. Even if you need to show the 2 in the same report, you can sum as separate totals. Other than that yes of course you can regex them out as say different source types, but it hardly seems to be worth it. Keep it simple? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2013 16:08:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101912#M26322</guid>
      <dc:creator>DaveSavage</dc:creator>
      <dc:date>2013-01-28T16:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting usernames from Solaris 9 syslog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101913#M26323</link>
      <description>&lt;P&gt;DaveSavage,&lt;BR /&gt;
Yes, I can separate based on the process name -  sshd or rmclomv - but separating the usernames is a challenge somehow. My regex skills are not too good yet and it catches a lot of noise into the extraction. For one, this regex from the built-in field extractor:&lt;BR /&gt;
"(?i)^(?:[^]]*]){2}\s+\w+\s+\w+\s+\w+\s+(?P&lt;FIELDNAME&gt;[^ ]+)"&lt;BR /&gt;
against the very 1st example (see above) &lt;BR /&gt;
gets me 1 username but also 4 useless extracts from the string, incl. dashes and prepositions.&lt;/FIELDNAME&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2013 16:24:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101913#M26323</guid>
      <dc:creator>cgisplunk</dc:creator>
      <dc:date>2013-01-28T16:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting usernames from Solaris 9 syslog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101914#M26324</link>
      <description>&lt;P&gt;here is a regex matching both with an OR condition &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex "(Accepted password for |SC Login: User )(?&amp;lt; username &amp;gt;\w+))" | table username _raw&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;(remove the extra espaces in the xml tag, i had to add then the forum was escaping the whole attribute)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2013 16:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101914#M26324</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-01-28T16:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting usernames from Solaris 9 syslog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101915#M26325</link>
      <description>&lt;P&gt;Understood. Yannk did the business below &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2013 17:05:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101915#M26325</guid>
      <dc:creator>DaveSavage</dc:creator>
      <dc:date>2013-01-28T17:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting usernames from Solaris 9 syslog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101916#M26326</link>
      <description>&lt;P&gt;Nicee..like that&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2013 17:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101916#M26326</guid>
      <dc:creator>DaveSavage</dc:creator>
      <dc:date>2013-01-28T17:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting usernames from Solaris 9 syslog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101917#M26327</link>
      <description>&lt;P&gt;Dear yannK,&lt;/P&gt;

&lt;P&gt;Bullseye! Works like a charm with few cosmetic touches. Thank you kindly.&lt;BR /&gt;
DanSavage, appreciate your assistance as well.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 17:38:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101917#M26327</guid>
      <dc:creator>cgisplunk</dc:creator>
      <dc:date>2013-01-29T17:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting usernames from Solaris 9 syslog</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101918#M26328</link>
      <description>&lt;P&gt;You are welcome.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 18:25:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-usernames-from-Solaris-9-syslog/m-p/101918#M26328</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-01-29T18:25:30Z</dc:date>
    </item>
  </channel>
</rss>

