<?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 Re: Linux extraction woes using Splunk Linux TA in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634833#M108631</link>
    <description>&lt;P&gt;The src_ip_as_src transform is not the only one referenced in props (but probably the most relevant).&amp;nbsp; All it is doing is copying all characters from the src_ip field to the src field.&amp;nbsp; There are other ways to do it, too.&lt;/P&gt;&lt;P&gt;The next thing to figure out is where the src_ip field is extracted from the raw data.&amp;nbsp; That seems to be the cause of the problem.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 20:35:57 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-03-16T20:35:57Z</dc:date>
    <item>
      <title>Issues using Linux extraction using Splunk Linux TA</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634804#M108625</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone guide me in the right direction. I have an issue with src_ip extraction using the nix splunk TA.&lt;BR /&gt;I see that the [syslog] stanza in props.conf contains the config below, but I'm unsure how src_ip is actually being extracted using the props and transforms code blocks below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Futhermore, I'm not 100% certain what transforms is actually doing. I was trying to narrow down where the issue might be with the extraction, but having some difficultly figuring that out.&amp;nbsp; The regex seems very basic.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;search: `index=ap_os_nix sourcetype=syslog`&lt;BR /&gt;sourcetype = `syslog`&lt;BR /&gt;source = `/var/log/auth`&lt;/P&gt;
&lt;P&gt;This payload below parses incorrectly and also included the port number.&lt;BR /&gt;&lt;EM&gt;Mar 16 11:36:43 apnmls02 sshd[21198]: Received disconnect from 172.16.5.49 port 51798:11: Session closed [preauth]&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;`src_ip="172.16.5.49 port 51798:11"`&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The payload below has parses the source IP correctly.&lt;BR /&gt;&lt;EM&gt;Mar 16 11:42:23 apcribl02 sshd[200646]: Connection closed by 172.16.5.49 port 56452&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;`src_ip = 172.16.5.49`&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;### Props for syslog sourcetype&lt;/P&gt;
&lt;PRE&gt;```&lt;BR /&gt;###### Syslog ######&lt;BR /&gt;[source::....syslog]&lt;BR /&gt;sourcetype = syslog&lt;BR /&gt;&lt;BR /&gt;[syslog]&lt;BR /&gt;EVENT_BREAKER_ENABLE = true&lt;BR /&gt;&lt;BR /&gt;## Event extractions by type&lt;BR /&gt;REPORT-0authentication_for_syslog = remote_login_failure, bad-su2, passwd-auth-failure, failed_login1, bad-su, failed-su, ssh-login-failed, ssh-invalid-user, ssh-login-accepted, ssh-session-close, ssh-disconnect, sshd_authentication_kerberos_success, sshd_authentication_refused, sshd_authentication_tried, sshd_login_restricted, pam_unix_authentication_success, pam_unix_authentication_failure, sudo_cannot_identify, ksu_authentication, ksu_authorization, su_simple, su_authentication, su_successful, wksh_authentication, login_authentication&lt;BR /&gt;EVAL-action = if(app="su" AND isnull(action),"success",action)&lt;BR /&gt;REPORT-account_management_for_syslog = useradd, userdel, userdel-grp, groupdel, groupadd, groupadd-suse&lt;BR /&gt;REPORT-password_change_for_syslog = pam-passwd-ok, passwd-change-fail&lt;BR /&gt;REPORT-firewall = ipfw, ipfw-stealth, ipfw-icmp, pf&lt;BR /&gt;REPORT-routing = iptables&lt;BR /&gt;EVAL-signature = if(isnotnull(inbound_interface),"firewall",null())&lt;BR /&gt;REPORT-signature_for_syslog_timesync = signature_for_nix_timesync&lt;BR /&gt;&lt;BR /&gt;REPORT-dest_for_syslog = host_as_dest&lt;BR /&gt;LOOKUP-action_for_syslog = nix_action_lookup vendor_action OUTPUTNEW action&lt;BR /&gt;REPORT-src_for_syslog = src_dns_as_src, src_ip_as_src&lt;BR /&gt;FIELDALIAS-dvc = dest as dvc&lt;BR /&gt;&lt;BR /&gt;EVAL-vendor_product = if(isnull(vendor_product), "nix", vendor_product)&lt;BR /&gt;```&lt;/PRE&gt;
&lt;P&gt;### Transforms line referenced in Props&lt;/P&gt;
&lt;PRE&gt;```&lt;BR /&gt;[src_ip_as_src]&lt;BR /&gt;SOURCE_KEY = src_ip&lt;BR /&gt;REGEX = (.+)&lt;BR /&gt;FORMAT = src::"$1"&lt;BR /&gt;```&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 16:09:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634804#M108625</guid>
      <dc:creator>mburgess97</dc:creator>
      <dc:date>2023-03-17T16:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Linux extraction woes using Splunk Linux TA</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634833#M108631</link>
      <description>&lt;P&gt;The src_ip_as_src transform is not the only one referenced in props (but probably the most relevant).&amp;nbsp; All it is doing is copying all characters from the src_ip field to the src field.&amp;nbsp; There are other ways to do it, too.&lt;/P&gt;&lt;P&gt;The next thing to figure out is where the src_ip field is extracted from the raw data.&amp;nbsp; That seems to be the cause of the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 20:35:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634833#M108631</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-03-16T20:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Linux extraction woes using Splunk Linux TA</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634841#M108632</link>
      <description>&lt;P&gt;I know it will not be of much help at this point but yes, sometimes the TA_nix is not up to speed with changes of log formats (and different kernel versions and different services versions can report events in different formats). So it's not unusual to have to adjust your extractions.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 22:33:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634841#M108632</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-03-16T22:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Linux extraction woes using Splunk Linux TA</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634895#M108640</link>
      <description>&lt;P&gt;What would be the best practice method for dealing with this?&amp;nbsp; I assume changing the app isn't preferred due to updates overwriting changes.&lt;/P&gt;&lt;P&gt;Create another app/props file that looks at this specific sourcetype?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 10:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634895#M108640</guid>
      <dc:creator>mburgess97</dc:creator>
      <dc:date>2023-03-17T10:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Linux extraction woes using Splunk Linux TA</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634896#M108641</link>
      <description>&lt;P&gt;That's what is confusing me... I can't find the extraction method.&amp;nbsp; I would assume it would regex, but I don't think it is.&lt;/P&gt;&lt;P&gt;Apologies for the elementary questions... I read the props spec - not sure what I am missing.&amp;nbsp; The only area referencing [syslog] in props is what I posted earlier.&amp;nbsp; The only other (non-sourcetype specific) area is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#####################&lt;BR /&gt;## Configuration Logs&lt;BR /&gt;#####################&lt;BR /&gt;[source::(....(config|conf|cfg|inii|cfg|emacs|ini|license|lng|plist|presets|properties|props|vim|wsdl))]&lt;BR /&gt;sourcetype = config_file&lt;BR /&gt;CHECK_METHOD = modtime&lt;/P&gt;&lt;P&gt;[config_file]&lt;BR /&gt;LINE_BREAKER = ^((?!))$&lt;BR /&gt;TRUNCATE = 1000000&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;DATETIME_CONFIG = NONE&lt;BR /&gt;CHECK_METHOD = modtime&lt;BR /&gt;KV_MODE = none&lt;BR /&gt;pulldown_type = true&lt;BR /&gt;SEGMENTATION-all = whitespace-only&lt;BR /&gt;SEGMENTATION-inner = whitespace-only&lt;BR /&gt;SEGMENTATION-outer = whitespace-only&lt;BR /&gt;SEGMENTATION-standard = whitespace-only&lt;BR /&gt;LEARN_MODEL = false&lt;BR /&gt;LEARN_SOURCETYPE = false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 11:09:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634896#M108641</guid>
      <dc:creator>mburgess97</dc:creator>
      <dc:date>2023-03-17T11:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Linux extraction woes using Splunk Linux TA</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634909#M108645</link>
      <description>&lt;P&gt;Either create your own props/transforms in application's local directory (this way if you upgrade the app your changes won't get overwritten) or create a new app (mind the conf file precedence).&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 13:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Issues-using-Linux-extraction-using-Splunk-Linux-TA/m-p/634909#M108645</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-03-17T13:41:04Z</dc:date>
    </item>
  </channel>
</rss>

