<?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 PROPS/TRANSFORMS.CONF in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/PROPS-TRANSFORMS-CONF/m-p/449899#M78133</link>
    <description>&lt;P&gt;Hi - i am in the process of configuring routing 3 sourcetypes from 2 different directories to 3x indexers.&lt;/P&gt;

&lt;P&gt;i have an access.log, secure.log and a cisco_ironport_web.log ( i have renamed the sourcetypes)&lt;/P&gt;

&lt;P&gt;the access and secure logs are being monitored from the same directory /opt/log/www*&lt;BR /&gt;
the cisco log is in /opt/log/cisco_1/cisco_ironport_web.log&lt;/P&gt;

&lt;P&gt;i have created the &lt;STRONG&gt;&lt;EM&gt;props.conf&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[source::opt/log/cisco_router1/cisco_ironport_web.log]&lt;BR /&gt;
TRANSFORMS-sourcetype = ciscoweblog&lt;/P&gt;

&lt;P&gt;[web_log]&lt;BR /&gt;
TRANSFORMS-a = access_log&lt;BR /&gt;
TRANSFORMS-b = secure_log&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;TRANSFORMS&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[access_log]&lt;BR /&gt;
SOURCE_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = "status=*"&lt;BR /&gt;
DEST_KEY = MetaData:Index&lt;BR /&gt;
FORMAT = web&lt;/P&gt;

&lt;P&gt;[secure_log]&lt;BR /&gt;
SOURCE_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = "invalid user"&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = security&lt;/P&gt;

&lt;P&gt;[ciscoweblog]&lt;BR /&gt;
SOURCE_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = &lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = network&lt;/P&gt;

&lt;P&gt;from with in the REGEX fields i believe you can specify a string or a phrase which contains within the log.&lt;/P&gt;

&lt;P&gt;but i am not entirely sure whether if what i am doing here is correct and whether how you can generate correct Regex's for these sourcetypes...&lt;/P&gt;

&lt;P&gt;This is the monitored file for the network log &lt;/P&gt;

&lt;P&gt;[monitor:///opt/log/cisco_router1/cisco_ironport_web.log]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
host_segment = 3&lt;BR /&gt;
sourcetype = ciscoweblog&lt;BR /&gt;
index = network&lt;/P&gt;

&lt;P&gt;i have specified a single stanza to monitor both the access/secure logs.&lt;/P&gt;

&lt;P&gt;[monitor:///opt/log/www*/*.log]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
host_segment = 3&lt;BR /&gt;
sourcetype = web_log&lt;BR /&gt;
index = web&lt;/P&gt;

&lt;P&gt;Can someone assist me to whether if i am in the right direction or completely wrong and how i can correct these conf files?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 21:46:41 GMT</pubDate>
    <dc:creator>danesh_shah</dc:creator>
    <dc:date>2020-09-29T21:46:41Z</dc:date>
    <item>
      <title>PROPS/TRANSFORMS.CONF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/PROPS-TRANSFORMS-CONF/m-p/449899#M78133</link>
      <description>&lt;P&gt;Hi - i am in the process of configuring routing 3 sourcetypes from 2 different directories to 3x indexers.&lt;/P&gt;

&lt;P&gt;i have an access.log, secure.log and a cisco_ironport_web.log ( i have renamed the sourcetypes)&lt;/P&gt;

&lt;P&gt;the access and secure logs are being monitored from the same directory /opt/log/www*&lt;BR /&gt;
the cisco log is in /opt/log/cisco_1/cisco_ironport_web.log&lt;/P&gt;

&lt;P&gt;i have created the &lt;STRONG&gt;&lt;EM&gt;props.conf&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[source::opt/log/cisco_router1/cisco_ironport_web.log]&lt;BR /&gt;
TRANSFORMS-sourcetype = ciscoweblog&lt;/P&gt;

&lt;P&gt;[web_log]&lt;BR /&gt;
TRANSFORMS-a = access_log&lt;BR /&gt;
TRANSFORMS-b = secure_log&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;TRANSFORMS&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[access_log]&lt;BR /&gt;
SOURCE_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = "status=*"&lt;BR /&gt;
DEST_KEY = MetaData:Index&lt;BR /&gt;
FORMAT = web&lt;/P&gt;

&lt;P&gt;[secure_log]&lt;BR /&gt;
SOURCE_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = "invalid user"&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = security&lt;/P&gt;

&lt;P&gt;[ciscoweblog]&lt;BR /&gt;
SOURCE_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = &lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = network&lt;/P&gt;

&lt;P&gt;from with in the REGEX fields i believe you can specify a string or a phrase which contains within the log.&lt;/P&gt;

&lt;P&gt;but i am not entirely sure whether if what i am doing here is correct and whether how you can generate correct Regex's for these sourcetypes...&lt;/P&gt;

&lt;P&gt;This is the monitored file for the network log &lt;/P&gt;

&lt;P&gt;[monitor:///opt/log/cisco_router1/cisco_ironport_web.log]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
host_segment = 3&lt;BR /&gt;
sourcetype = ciscoweblog&lt;BR /&gt;
index = network&lt;/P&gt;

&lt;P&gt;i have specified a single stanza to monitor both the access/secure logs.&lt;/P&gt;

&lt;P&gt;[monitor:///opt/log/www*/*.log]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
host_segment = 3&lt;BR /&gt;
sourcetype = web_log&lt;BR /&gt;
index = web&lt;/P&gt;

&lt;P&gt;Can someone assist me to whether if i am in the right direction or completely wrong and how i can correct these conf files?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:46:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/PROPS-TRANSFORMS-CONF/m-p/449899#M78133</guid>
      <dc:creator>danesh_shah</dc:creator>
      <dc:date>2020-09-29T21:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROPS/TRANSFORMS.CONF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/PROPS-TRANSFORMS-CONF/m-p/449900#M78134</link>
      <description>&lt;P&gt;made a slight change to props&lt;/P&gt;

&lt;P&gt;[ciscoweblog]&lt;BR /&gt;
TRANSFORMS-route = ironportlog&lt;/P&gt;

&lt;P&gt;[web_log]&lt;BR /&gt;
LINE_BREAKER = ([\r\n])&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 22&lt;BR /&gt;
SHOULD_LINEMERGE = FALSE&lt;BR /&gt;
TRANSFORMS-a = access_log&lt;BR /&gt;
TRANSFORMS-b = secure_log&lt;BR /&gt;
TRUNCATE = 256&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/PROPS-TRANSFORMS-CONF/m-p/449900#M78134</guid>
      <dc:creator>danesh_shah</dc:creator>
      <dc:date>2020-09-29T21:46:44Z</dc:date>
    </item>
  </channel>
</rss>

